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

Vinay Sajip report at bugs.python.org
Mon Apr 9 20:57:48 CEST 2012

Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

Re. logging, logging._acquireLock and logging._releaseLock are not part of the public API and are undocumented at present. The case when _releaseLock does not raise an error is when threading couldn't be imported, so the _lock variable is None. I don't see the need for adding any documentation for this.

Logging doesn't use dummy_thread: if threading isn't available, all lock acquisition and release operations become no-ops.


Python tracker <report at bugs.python.org>

More information about the docs mailing list