[Tutor] How to un-import modules?

Luke Paireepinart rabidpoobear at gmail.com
Mon Aug 14 23:19:44 CEST 2006


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.



More information about the Tutor mailing list