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 @@ -216,9 +216,11 @@ In addition to these methods, lock objects can also be used via the
216
216
* Calling :func: `sys.exit ` or raising the :exc: `SystemExit ` exception is
217
217
equivalent to calling :func: `_thread.exit `.
218
218
219
- * It is not possible to interrupt the :meth: `~threading.Lock.acquire ` method on
220
- a lock --- the :exc: `KeyboardInterrupt ` exception will happen after the lock
221
- has been acquired.
219
+ * It is platform-dependent whether the :meth: `~threading.Lock.acquire ` method
220
+ on a lock can be interrupted (so that the :exc: `KeyboardInterrupt ` exception
221
+ will happen immediately, rather than only after the lock has been acquired or
222
+ the operation has timed out). It can be interrupted on POSIX, but not on
223
+ Windows.
222
224
223
225
* When the main thread exits, it is system defined whether the other threads
224
226
survive. On most systems, they are killed without executing
You can’t perform that action at this time.
0 commit comments