[docs] [issue14502] Document better what happens on releasing an unacquired lock
report at bugs.python.org
Thu Apr 5 23:38:18 CEST 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> At least put the information inside some disclaimers about "normally";
> even the stdlib has some fake locks that let you release a lock
> someone else holds.
Not sure what you're talking about. The doc patch is about unacquired
locks, not locks that someone else (another thread) holds.
Indeed the standard Lock object (but not the RLock) does allow releasing
from another thread. It's a feature (which makes it serve as a binary
Python tracker <report at bugs.python.org>
More information about the docs