[New-bugs-announce] [issue9247] imp.reload() doesn't take import lock

Antoine Pitrou report at bugs.python.org
Tue Jul 13 15:38:57 CEST 2010

New submission from Antoine Pitrou <pitrou at free.fr>:

I am not sure this is important or now, but reload() (imp.reload() in 3.x) doesn't take the import lock when reloading:

$ echo 'import imp; print("lock held =", imp.lock_held())' > foo.py
$ ./python -c 'import imp, foo; imp.reload(foo)'
lock held = True
lock held = False

components: Interpreter Core
messages: 110191
nosy: brett.cannon, ncoghlan, pitrou
priority: normal
severity: normal
status: open
title: imp.reload() doesn't take import lock
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list