[Tutor] re-import

jhl jhlaks at gmail.com
Mon Oct 30 03:25:28 CET 2006


Hi-

How is the 1st import of a module removed so that new edits on the module
can be re-imported?

DETAIL:

I am working on a module/file and importing it into a python shell, trying
it out and then tweaking/editing the module.  Then to see the effects of the
edits, I want to re-import the file and find that the original import
persists-- can't get the new/edited module without exiting and restarting
the python shell.  I've used dir() and del'd every reference to the module
(and its contents/defs), but the 1st import seems to remain as the source
for future imports.

Thanks in advance for any & all help,
-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061029/74c1d9cd/attachment.html 


More information about the Tutor mailing list