Extracting elements over multiple lists?

Dave Angel d at davea.name
Tue Nov 15 13:17:48 EST 2011


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




More information about the Python-list mailing list