Message232792
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:37 | gvanrossum | set | recipients:
+ gvanrossum |
2014-12-17 02:14:37 | gvanrossum | set | messageid: <1418782477.87.0.643327890289.issue23068@psf.upfronthosting.co.za> |
2014-12-17 02:14:37 | gvanrossum | link | issue23068 messages |
2014-12-17 02:14:37 | gvanrossum | create | |
|