Dave Peck added the comment:
Definitely could agree with this assessment, but it is surprising given the
lack of parallel behavior between 'import' and 'imp'.
Note that imp.load_module(subpackage) _does_ modify the parent module's
attributes -- but it will never put
New submission from Dave Peck :
If you use `import` to load a package and subpackage:
import package
import package.subpackage
Then the `package` module instance will contain a `subpackage` attribute:
assert "subpackage" in dir(sys.modules['package']), &qu