interactive development in python

Gerhard Häring gh at ghaering.de
Tue Mar 11 16:46:44 EST 2003


Joseph Heled wrote:
> How do I re-load imported modules?

reload(module), for example:

#v+
gerhard at mephisto:~$ python
Python 2.2.2 (#1, Jan 18 2003, 10:18:59) 
[GCC 3.2.2 20030109 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> reload(os)
<module 'os' from '/usr/lib/python2.2/os.pyc'>
>>> 
#v-

Gerhard
-- 
mail:   gh at ghaering.de
web:    http://ghaering.de/




More information about the Python-list mailing list