[docs] [issue14502] Document better what happens on releasing an unacquired lock
Antoine Pitrou
report at bugs.python.org
Mon Apr 9 21:31:04 CEST 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> 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?
I don't see the point of this discussion. We are talking about
threading.Lock (and, possibly, multiprocessing.Lock), not every lock API
under the sun. Especially when it's a private API...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14502>
_______________________________________
More information about the docs
mailing list