[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-28 Thread Dave Peck
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

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-25 Thread Dave Peck
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