[issue25372] load_module() does not link submodule to parent package

R. David Murray report at bugs.python.org
Sun Oct 11 11:09:00 EDT 2015


R. David Murray added the comment:

Brett: Martin is calling pkgutil.find_loader, which is not marked as deprecated, and then calling load_module on the returned loader, which apparently does *almost* what he wants but not quite.

Martin: maybe you should explain your use case in more detail.  Probably there is a better way to accomplish it using importlib directly.  Unless one of your issues is needing to write 2/3 compatible code...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25372>
_______________________________________


More information about the Python-bugs-list mailing list