Many thanks to Bob and Kent and all the good people in the tutor forum. The dir() and del work really well ! Eli
________________________________ מאת: bob gailer [mailto:[EMAIL PROTECTED] נשלח: ש 10/13/2007 17:35 אל: Kent Johnson עותק לידיעה: Eli Brosh; tutor@python.org נושא: Re: [Tutor] Variables in workspace Kent Johnson wrote: > bob gailer wrote: >> The del statement is the way to delete variables. Since dir() gives >> you their names one needs use eval. >> >> for varName in dir(): >> eval 'del ' + varName > > I think del globals()[varName] would work. Yep. That was nagging a corner of my brain, but not surfacing.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor