Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:
This is correct behavior. Try making a new *copy* of the sublist: a = [[1,2],[3,4],[5,6]] b = a[0][:] b[0] = -8888 ---------- nosy: +rhettinger resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6219> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com