Unbinding multiple variables

Johnny Lin air_jlin at yahoo.com
Thu Jan 20 22:24:43 EST 2005


Is there a way to automate the unbinding of multiple variables?  Say I
have a list of the names of all variables in the current scope via
dir().  Is there a command using del or something like that that will
iterate the list and unbind each of the variables?

Thanks much!  (If anyone posts an answer, if you could also cc your
reply to my email air_jlin at yahoo.com, would be much obliged.  Thanks


More information about the Python-list mailing list