trouble with reload

Terry Reedy tjreedy at udel.edu
Fri Aug 14 06:49:19 CEST 2009


Dr. Phillip M. Feldman wrote:
> According to the Python documentation, 'reload' reloads a previously imported
> module (so that changes made via an external editor will be effective). 
> But, when I try to use this command, I get the following error message:
> 
> TypeError: reload() argument must be module
> 
> Any suggestions will be appreciated.

Besides the other answers, do not use reload. It is removed in Py3 
because it cannot be made to work as people reasonably expect.

tjr




More information about the Python-list mailing list