[issue2090] __import__ with fromlist=[''] causes double initialization of modules
Mart Sõmermaa
report at bugs.python.org
Wed Nov 26 13:01:06 CET 2008
Mart Sõmermaa <mrts at mrts.pri.ee> added the comment:
Just for reference, the simplest workaround is to use:
modname = "foo.bar.baz.baq"
mod = __import__(modname, {}, {}, [modname.rsplit(".", 1)[-1]])
----------
nosy: +mrts
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2090>
_______________________________________
More information about the Python-bugs-list
mailing list