[docs] [issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Oct 17 00:12:05 CEST 2012
Amaury Forgeot d'Arc added the comment:
"""To prevent initializing an extension module more than
once, we keep a static dictionary 'extensions' keyed by module name
(for built-in modules) or by filename (for dynamically loaded
modules), containing these modules.
"""
So there can be only one module per filename.
But what if this dictionary was keyed by tuple(name, filename) instead?
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16194>
_______________________________________
More information about the docs
mailing list