[issue19499] "import this" is cached in sys.modules

Eric Snow report at bugs.python.org
Tue Nov 5 18:42:53 CET 2013


Eric Snow added the comment:

+0 to just doing a reload.  At the point you show someone "import this", it may be premature to be explaining reloading to them.  Python is great because you usually don't have to hand-wave through some concepts in order to explain others. [1]

Also, under Python 3 you have to import reload() separately:

from imp import reload
reload(this)


[1] http://www.boredomandlaziness.org/2011/08/scripting-languages-and-suitable.html

----------

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


More information about the Python-bugs-list mailing list