how to erase a variable

John Machin sjmachin at lexicon.net
Fri Jun 2 23:44:11 EDT 2006


greenflame wrote:
> Is there a way to get rid of a variable as though it never existed? I
> know this sounds very basic but I have not come across any such
> methods. Also is the fact that I will have a bunch of extra variables
> just haning around because my use for them is over a bad thing? I will
> likely have on the order of 10 to 50 or so of these for the particular
> program I an working on at the moment.

del rubbish, garbage, junk, unwanted_stuff




More information about the Python-list mailing list