[Tutor] how can i reload a module under win2000

VanL van@lindbergs.org
Sat, 07 Apr 2001 11:55:25 -0600


Try the builtin function reload.

For example:

vanl@MOUSE ~/winhome
$ python
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> reload(os)
<module 'os' from 'c:\lib\python20\lib\os.pyc'>
>>>