decouple copy of a list
Jean-Michel Pichavant
jeanmichel at sequans.com
Fri Dec 10 13:23:15 EST 2010
cassiope wrote:
>> Alternatively, you can write
>>
>> import copy
>> a = [1,2,3]
>> b = a.copy()
>>
>>
>> JM
>>
>
> I'm not a pyguru, but... you didn't use copy quite right.
> Try instead: b= copy.copy(a)
>
>
You're right, you're not a python guru so don't even try to contradict
me ever again.
...
:D of course I did it completly wrong. I don't know what happened in my
brain at that time, maybe nothing and that's the point.
JM
More information about the Python-list
mailing list