[docs] [issue14502] Document better what happens on releasing an unacquired lock
Petri Lehtinen
report at bugs.python.org
Wed Jun 6 20:00:57 CEST 2012
Petri Lehtinen <petri at digip.org> added the comment:
The docs of 2.7 and 3.2 still first say that RuntimeError is raised, and then that a ThreadError is raised:
...
If an attempt is made to release an unlocked lock, a RuntimeError
will be raised.
...
Lock.release()
...
When invoked on an unlocked lock, a ThreadError is raised.
In 2.7 and 3.2, ThreadError is not a RuntimeError, so this is wrong.
----------
nosy: +petri.lehtinen
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14502>
_______________________________________
More information about the docs
mailing list