Message info
 
To:python-checkins@python.org From:sandro.tosi Subject:[Python-checkins] cpython (2.7): Issue #14502: release() and unlocked lock generates a ThreadError Date:Thu, 05 Apr 2012 23:01:58 +0200
 

http://hg.python.org/cpython/rev/efeca6ff2751
changeset: 76129:efeca6ff2751
branch: 2.7
parent: 76117:8258e5fa4a19
user: Sandro Tosi <sandro.tosi@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