[issue9247] imp.reload() doesn't take import lock
report at bugs.python.org
Tue Jul 13 21:00:02 CEST 2010
Brett Cannon <brett at python.org> added the comment:
So the import lock is to prevent trying to import the same module, right? If you are doing a reload, the module is basically already there. But what if you context switch while reloading? That would be bad as that would give you inconsistent state.
So it probably should hold the lock (unless I am off about what the import lock should truly be used for).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list