[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so
Václav Šmilauer
report at bugs.python.org
Thu Oct 11 17:32:19 CEST 2012
Václav Šmilauer added the comment:
While I understand that this behavior went unnoticed for ages and can be seen therefore as unimportant, designating this as documentation bug is quite absurd; perhaps the following wording would be appropriate:
.. note::
If this function is called multiple times on the same file (in terms of inode; symlink pointing to same file is fine), it will return the module which was first imported via `load_dynamic` instead of the requested module, without reporting any error. The previous call to `load_dynamic` may not be in the same part of the code, but it must happen within the same interpreter instance.
----------
components: +Library (Lib) -Documentation
nosy: +ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16194>
_______________________________________
More information about the Python-bugs-list
mailing list