Python still remembers script after change and save

Chris Liechti cliechti at gmx.net
Mon Oct 29 19:44:07 CET 2001


"Paul Brian" <paul1brian at yahoo.com> wrote in
news:1004382387.8324.0.nnrp-07.c1c3e128 at news.demon.co.uk: 
> I occasionally come across a situation where I have changed a file,
> rerun the file in python but python still produces an error, quoting
> the original file in the error string

you're looking for the "reload" command

1. for the first usage type:
    	import mymod

2. usage after modifications on mymod, type:
    	reload(mymod)

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list