[New-bugs-announce] [issue18698] importlib.reload() does not return the module in sys.modules
Eric Snow
report at bugs.python.org
Sat Aug 10 01:27:18 CEST 2013
New submission from Eric Snow:
Currently reload() returns the module that loader.load_module() returns, rather than returning the one in sys.modules. This is different from what happens during normal import. I would expect reload() to return what's in sys.modules. Perhaps this got overlooked when we moved reload()? I haven't had a chance to verify, but I do recall that the switch to importlib-based import in 3.3 exposed a bug where importlib wasn't returning the module in sys.modules during normal import.
----------
components: Library (Lib)
messages: 194776
nosy: brett.cannon, eric.snow
priority: normal
severity: normal
status: open
title: importlib.reload() does not return the module in sys.modules
type: behavior
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18698>
_______________________________________
More information about the New-bugs-announce
mailing list