This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum
Date 2014-12-17.02:14:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418782477.87.0.643327890289.issue23068@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-17 02:14:37gvanrossumsetrecipients: + gvanrossum
2014-12-17 02:14:37gvanrossumsetmessageid: <1418782477.87.0.643327890289.issue23068@psf.upfronthosting.co.za>
2014-12-17 02:14:37gvanrossumlinkissue23068 messages
2014-12-17 02:14:37gvanrossumcreate