[Tutor] IDLE question

Dick Moores rdm at rcblue.com
Fri Jul 9 16:13:22 CEST 2004


Steve wrote at 05:47 7/9/2004:
>So, to do what you asked for, you can simply do something like:
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>> for i in globals().keys():
>...     if i not in ['__builtins__', '__doc__', '__file__', '__name__']:
>...             del globals()[i]

Thanks very much, Steve. That works fine, even though it's more typing 
than I was hoping for..

Dick






More information about the Tutor mailing list