[issue18698] importlib.reload() does not return the module in sys.modules

Eric Snow report at bugs.python.org
Wed Aug 14 08:34:20 CEST 2013


Eric Snow added the comment:

Yep.  In 2.7 and 3.2 the PyImport_ExecCodeModuleEx() function in Python/importlib.c returns the module found in sys.modules.  Here is a patch.  I suppose this should be fixed in 2.7 as well.  Thoughts?

----------
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file31289/reload_replaced_module.diff

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


More information about the Python-bugs-list mailing list