Eric Snow <ericsnowcurren...@gmail.com> added the comment: Yeah, imp.reload() is pure Python now (Lib/imp.py), a simple wrapper around module.__loader__.load_module(), which does not make use of any import locks. Having it do so, however, may not be feasible as I'd expect it to mean having load_module() handle the locking. Not sure if it's worth it.
The other issue is that the True reported by Antoine turned into False for you under 3.3a4. This is because of issue 9260 ("A finer grained import lock"). The global import lock represented in the imp module is now used only long enough to create a lock specific to the module currently being imported. So it's been released by the time the module is actually imported. (see Lib/importlib/_bootstrap.py) ---------- nosy: +eric.snow status: pending -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9247> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com