]> 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:54 +0000 (22:51 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Thu, 5 Apr 2012 20:51:54 +0000 (22:51 +0200)
Doc/library/threading.rst

index 9b3affd979bd02552f5a4942ff154c1d2cc7f357..0738e22776771eb2239fc7fc8ce3f4f476de8960 100644 (file)
@@ -430,7 +430,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.