[issue13487] inspect.getmodule fails when module imports change sys.modules

Amaury Forgeot d'Arc report at bugs.python.org
Mon Nov 28 19:52:48 CET 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

When a package is imported sys.modules changes... nothing special here.
But it's true true that py.std, for example, is a "lazy" module with a special __getattr__ that will import submodules.

Patch looks good to me as well.

----------

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


More information about the Python-bugs-list mailing list