Documentation for importing modules / pythonpath?
Steve Holden
sholden at holdenweb.com
Fri Feb 21 08:03:51 EST 2003
"Lexy Zhitenev" <zhitenev at cs.vsu.ru> 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.
regards
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
Register for PyCon now! http://www.python.org/pycon/reg.html
More information about the Python-list
mailing list