Brett Cannon <br...@python.org> added the comment:

Did you mean importlib.reload() instead of sys.reload()?

And technically it would *if* you're okay with the other side-effects of 
reloading, e.g. making sure no one has a reference to any objects from the 
module's namespace which won't change in-place (e.g. if you stored a reference 
to the cache in some code then the reload wouldn't clear it for the stored 
reference).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36485>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to