From: Sandro Tosi Date: Thu, 5 Apr 2012 20:51:00 +0000 (+0200) Subject: Issue #14502: release() and unlocked lock generates a ThreadError X-Git-Tag: v2.7.4rc1~920 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ceeb47d0c33b6875e253517140142a4d7f056790;p=thirdparty%2FPython%2Fcpython.git Issue #14502: release() and unlocked lock generates a ThreadError --- diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 28a3f8177e5e..89434b6efd8e 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -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.