Peter Hansen wrote: > Arguing the case for del: how would I, in doing automated testing, > ensure that I've returned everything to a "clean" starting point in all > cases if I can't delete variables? Sometimes a global is the simplest > way to do something... how do I delete a global if not with "del"?
globals ().__delitem__ (varname) except that the method would probably be called delete. Daniel -- http://mail.python.org/mailman/listinfo/python-list