[docs] [issue14502] Document better what happens on releasing an unacquired lock

R. David Murray report at bugs.python.org
Fri Apr 6 21:43:47 CEST 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

It doesn't matter *how* you get to the situation where you are releasing a lock that hasn't been acquired, the point is to document what actually happens when you do the release.  And just yesterday I needed to know this, since I have a lock that may or may not be currently held when I release it, and now I know I can just catch RuntimeError in that case.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14502>
_______________________________________


More information about the docs mailing list