I did some searching and haven't found much. The closest I've found so
far is this old thread:
http://mail.python.org/pipermail/python-list/2000-February/022526.html
You might look at IDLE's code to see what it does when you tell it to
"restart" too.
Good luck!
Mike
You can make Python "forget" a module by removing it from sys.modules; that way, next time you import it, Python will load it again from file.
Or you can use the built-in reload() function to get a "fresh" copy from file.
But any references to objects in the old module will still refer to the old objects (that means, by example, that existing instances of classes defined in the module will still refer to the old definition)
--
Gabriel Genellina