File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -219,9 +219,11 @@ In addition to these methods, lock objects can also be used via the
219219* Calling :func: `sys.exit ` or raising the :exc: `SystemExit ` exception is
220220 equivalent to calling :func: `_thread.exit `.
221221
222- * It is not possible to interrupt the :meth: `~threading.Lock.acquire ` method on
223- a lock --- the :exc: `KeyboardInterrupt ` exception will happen after the lock
224- has been acquired.
222+ * It is platform-dependent whether the :meth: `~threading.Lock.acquire ` method
223+ on a lock can be interrupted (so that the :exc: `KeyboardInterrupt ` exception
224+ will happen immediately, rather than only after the lock has been acquired or
225+ the operation has timed out). It can be interrupted on POSIX, but not on
226+ Windows.
225227
226228* When the main thread exits, it is system defined whether the other threads
227229 survive. On most systems, they are killed without executing
You can’t perform that action at this time.
0 commit comments