Author gvanrossum
Recipients gvanrossum
Date 2014-12-17.02:14:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
imp.lock_held() returns True if *any* thread is currently importing something. I'd like to have an API that can tell whether the *current* thread has the import lock.  The implementation keeps track of this, but doesn't make the info available.

Use case: print a warning/error if a network call is made during import.
Date User Action Args
2014-12-17 02:14:37gvanrossumsetrecipients: + gvanrossum
2014-12-17 02:14:37gvanrossumsetmessageid: <>
2014-12-17 02:14:37gvanrossumlinkissue23068 messages
2014-12-17 02:14:37gvanrossumcreate