IDLE and from module import foo

Mats Wichmann xyzmats at laplaza.org
Sat Jan 13 17:51:05 EST 2001


Seems like in IDLE, if you do "from module import x, y, z" you can't
reload those.... having run across it in the most painful place
possible,  of course (in class).   Just tried it out side-by-side: if
you edit the file and reload (per the Python Reference this needs to
be done by repeating the import statement since there's no module name
to give to reload()...) it doesn't pick up the new versions. In the
"command-line" version, it does.  (Windows NT/2000 platforms, in this
case). The IDLE behavior seems shared by Pythonwin, which I just tried
(don't use it much at the moment).

Anybody have any advice or suggestions?




More information about the Python-list mailing list