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

R. David Murray report at bugs.python.org
Sat Oct 10 23:36:49 EDT 2015


R. David Murray added the comment:

I'm no expert on pep 302 either, but I'm guessing this is an intentional part of the design.  You'll note that updating the namespace is *not* mentioned as one of the things load_module has to do.  The update of the namespace is something the import system as a whole implements, and I'm not sure where it happens (probably __import__/import_module).

Unless you are saying that this is a regression, it doesn't really matter if it was intentional or not, since if it is not a regression then it's been that way for a long time.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list