Hi all
I would appreciate some help understanding something. Basically I am
confused by the following:

>>> a = [[0, 0], [0, 0]]
>>> b = list(a)
>>> b[0][0] = 1
>>> a
[[1, 0], [0, 0]]

I expected the last line to be

[[0, 0], [0, 0]]

I hope that's clear enough.

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

Reply via email to