From: Sandro Tosi Date: Thu, 5 Apr 2012 20:51:54 +0000 (+0200) Subject: Issue #14502: release() and unlocked lock generates a ThreadError X-Git-Tag: v3.3.0a3~293^2~1^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fee3fc748e4c6e00cdd44c079e54cacef00690cf;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 9b3affd979bd..0738e2277677 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -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.