]> granicus.if.org Git - python/commitdiff
Issue #14502: release() and unlocked lock generates a ThreadError
authorSandro Tosi <sandro.tosi@gmail.com>
Thu, 5 Apr 2012 20:51:00 +0000 (22:51 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Thu, 5 Apr 2012 20:51:00 +0000 (22:51 +0200)
Doc/library/threading.rst

index 28a3f8177e5ef64361a5b9d1ef2b1314b785bbeb..89434b6efd8edf6e30bf04a758a66263a2c8397f 100644 (file)
@@ -420,7 +420,7 @@ All methods are executed atomically.
    are blocked waiting for the lock to become unlocked, allow exactly one of them
    to proceed.
 
-   Do not call this method when the lock is unlocked.
+   When invoked on an unlocked lock, a :exc:`ThreadError` is raised.
 
    There is no return value.