[issue23068] Add a way to determine if the current thread has the import lock

Nick Coghlan report at bugs.python.org
Thu Dec 18 00:20:25 CET 2014


Nick Coghlan added the comment:

You'd still need to check lock_held() to see if *some* thread is holding the import lock. The non-blocking import API should then let you determine if that thread is the current one.

----------

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


More information about the Python-bugs-list mailing list