[Tutor] Up All Night with IDLE.

alan.gauld@bt.com alan.gauld@bt.com
Mon, 15 Jan 2001 18:00:56 -0000


> I'm in IDLE and I write:
> def foobar():
> foobar()

> def foobaz():
> foobar()

Yes thats a pain. Like another poster I tend to always have a DOS box 
running and test from there even when editing in IDLE.

In this specific case you can get it to work by importing your 
module then "reload"ing it before every run. But that's actually 
harder than typing F3 in a DOS box....

> Shut down, restart IDLE, reload krock.py run it again:
> NameError: There is no variable named 'foobar'

You don't need to shut down IDLE just reload(krock).
But a DOS box and F3 is still easier and safer.

Alan g