Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fee3fc7

Browse files
committed
Issue #14502: release() and unlocked lock generates a ThreadError
1 parent 1024541 commit fee3fc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ All methods are executed atomically.
430430
are blocked waiting for the lock to become unlocked, allow exactly one of them
431431
to proceed.
432432

433-
Do not call this method when the lock is unlocked.
433+
When invoked on an unlocked lock, a :exc:`ThreadError` is raised.
434434

435435
There is no return value.
436436

0 commit comments

Comments
 (0)