Documentation for importing modules / pythonpath?

Steve Holden sholden at
Fri Feb 21 14:03:51 CET 2003

"Lexy Zhitenev" <zhitenev at> wrote in ...
> When the module is imported it never gets reinitialized again. To do it
> explicitly use 'reload(modulename)', e.g.:
> >>> import sys
> >>> reload(sys)

Note, however, that this solution can not be expected to work for extension
modules (those written in a lower-level language and more intimately linked
with the interpreter functionality). You load those, and they stay resident.

Steve Holden                        
Python Web Programming       
Register for PyCon now!  

More information about the Python-list mailing list