[Python-checkins] cpython (2.7): Issue #14502: release() and unlocked lock generates a ThreadError

sandro.tosi python-checkins at python.org
Thu Apr 5 23:01:58 CEST 2012


http://hg.python.org/cpython/rev/efeca6ff2751
changeset:   76129:efeca6ff2751
branch:      2.7
parent:      76117:8258e5fa4a19
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Thu Apr 05 22:51:00 2012 +0200
summary:
  Issue #14502: release() and unlocked lock generates a ThreadError

files:
  Doc/library/threading.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -420,7 +420,7 @@
    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.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list