On 11/15/2011 12:01 PM, Prasad, Ramit wrote:
<SNIP>
(Peter's "del" solution is quite close, but I find the 'del' statement
tricky in python and will mislead many python newcomers)
Can you expand on why 'del' is "tricky"/misleading?

Ramit

a = someexpression...
b = a
....
del a

Does not (necessarily) delete the object that a refers to. It merely deletes the symbol a.



--

DaveA

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to