faqts : Computers : Programming : Languages : PHP : Common Problems : Files : Tips and Tricks

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 13 people (85%) answered Yes
Recently 4 of 6 people (67%) answered Yes

Entry

When running sets of python scripts how can I cleanup all variables (globals) from the last one run?

May 7th, 2000 17:08
unknown unknown, Moshe Zadka


Run them with "exec <script> in {}"
Then all the global variables will be in a nameless dictionary.