Python still remembers script after change and save

Cliff Wells logiplexsoftware at earthlink.net
Mon Oct 29 14:12:36 EST 2001


On Monday 29 October 2001 11:06, Paul Brian wrote:

> 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

Are you talking about the main script or a module you are importing?  If you 
modify a module and import it again, you will still have the original module. 
You must call reload(module) to force Python to reinterpret the module

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list