[Tutor] IDLE question (original) (raw)
Steve lonetwin at gmail.com
Fri Jul 9 16:35:00 CEST 2004
- Previous message: [Tutor] IDLE question
- Next message: [Tutor] IDLE question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Dick,
Thanks very much, Steve. That works fine, even though it's more typing than I was hoping for.. you could always wrap it in a function and add the function to the list in the if statement. Also you may want to add this function to a startup file (eg: ".pystartup") and then set the environment variable "PYTHONSTARTUP=.pystartup". This would load make the function available each time you fire up python.
HTH Steve
On Fri, 09 Jul 2004 07:13:22 -0700, Dick Moores <rdm at rcblue.com> wrote:
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
- Previous message: [Tutor] IDLE question
- Next message: [Tutor] IDLE question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]