[docs] [issue14502] Document better what happens on releasing an unacquired lock
Jim Jewett
report at bugs.python.org
Mon Apr 9 21:26:27 CEST 2012
Jim Jewett <jimjjewett at gmail.com> added the comment:
Vinay,
The current question is what contract locks should follow, and whether
all locks should follow it. Would it be acceptable for
logging._releaseLock to raise a RuntimeError if the lock hadn't
previously been acquired? In other words, would it be acceptable to
replace the current None with a counter (and to note in comments that
it should be safe from race conditions because it is only used when
threading isn't available).
-jJ
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14502>
_______________________________________
More information about the docs
mailing list