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

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

Reply via email to