diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-02-28 22:03:34 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-02-28 22:03:34 (GMT) |
commit | fcf81fd0310ba505c46d33a82f2b782578ed1a98 (patch) | |
tree | 8cdb6d911947e46dd99ac99a08a82cb736c4006e /Doc/library/_thread.rst | |
parent | cfbcec3823892759017c1f3a1d1cb7fab4e84f69 (diff) | |
download | cpython-fcf81fd0310ba505c46d33a82f2b782578ed1a98.zip cpython-fcf81fd0310ba505c46d33a82f2b782578ed1a98.tar.gz cpython-fcf81fd0310ba505c46d33a82f2b782578ed1a98.tar.bz2 |
Issue #11140: Lock.release() now raises a RuntimeError when attempting
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
Diffstat (limited to 'Doc/library/_thread.rst')
-rw-r--r-- | Doc/library/_thread.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/_thread.rst b/Doc/library/_thread.rst index 369e9cd..e7e7504 100644 --- a/Doc/library/_thread.rst +++ b/Doc/library/_thread.rst @@ -35,6 +35,9 @@ It defines the following constants and functions: Raised on thread-specific errors. + .. versionchanged:: 3.3 + This is now a synonym of the built-in :exc:`RuntimeError`. + .. data:: LockType |