Forgetting an import

Larry Bates larry.bates at websafe.com
Tue Jun 12 13:12:18 EDT 2007


HMS Surprise wrote:
> I imported a set of functions from a file I wrote to interpreter
> shell:
> 
> from myFile import *
> 
> Now if I change functions in this file how can I make python forget it
> so I can force a fresh import?
> 
> thanx,
> 
> jh
> 
While there may be ways of doing this, I have found that you are much
better off opening another window and run your script from the bare
OS.  It will help you catch problems that you may miss in the
interpreter shell.  It also solves this problem completely.

-Larry



More information about the Python-list mailing list