On Mon, Sep 24, 2012 at 10:56 AM, Littlefield, Tyler <ty...@tysdomain.com> wrote: > I've not been following this thread fully, but why not just use x=list(y) to > copy the list? > The issue is that when you assign i=[1,2,3] and then j = i, j is just a > reference to i, which is why you change either and the other changes.
The problem is with lists as elements of that list, so the key is deepcopy. ChrisA -- http://mail.python.org/mailman/listinfo/python-list