IDLE and from module import foo
Richard Chamberlain
richard_chamberlainREMOVE at ntlworld.com
Sun Jan 14 02:56:57 EST 2001
Are you sure it works via the command line? Try it again I expect you'll see
that it doesn't.
You could try:
import module
reload(module)
from module import x,y,z
Richard
Mats Wichmann <xyzmats at laplaza.org> wrote in message
news:3a60d820.23710243 at news.laplaza.org...
> 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