Bug in __init__?

Bart Ogryczak B.Ogryczak at addr.in.reply-to.invalid
Tue Jan 22 16:20:14 EST 2008


On 2008-01-22, citizen Bruno Desthuilliers testified:
>> 			from copy import copy
>> 			### see also deepcopy
>> 			self.lst = copy(val)
>
> What makes you think the OP wants a copy ?

I´m guessing he doesn´t want to mutate original list, while changing 
contents of self.lst.

bart
-- 
"chłopcy dali z siebie wszystko, z czego tv pokazała głównie bebechy"
http://candajon.azorragarse.info/ http://azorragarse.candajon.info/



More information about the Python-list mailing list