[Tutor] How to un-import modules?

Dick Moores rdm at rcblue.com
Tue Aug 15 08:58:58 CEST 2006


At 02:19 PM 8/14/2006, you wrote:
>Michael P. Reilly wrote:
>>On 8/14/06, *Dick Moores* <rdm at rcblue.com <mailto:rdm at rcblue.com>> wrote:
>>
>>     Actually, my question is, after using IDLE to do some importing of
>>     modules and initializing of variables, how to return it to it's
>>     initial condition without closing and reopening it.
>>
>>     So, for example after I've done
>>     >>> import math, psyco
>>     >>> a = 4**23
>>
>>     How can I wipe those out without closing IDLE?
>>     (I used to know how, but I've forgotten.)
>while you're in the IDLE shell view, hit Ctrl+F6.  it restarts the 
>interpreter.

Yes! That's it. Or Shell->Restart. I should have poked around in IDLE 
and found this myself.

Thanks!

Dick Moores
rdm at rcblue.com





More information about the Tutor mailing list