This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients pushkarparanjpe, rhettinger
Date 2009-06-06.07:21:43
SpamBayes Score 0.045758557
Marked as misclassified No
Message-id <1244272905.15.0.176169014143.issue6219@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-06-06 07:21:45rhettingersetrecipients: + rhettinger, pushkarparanjpe
2009-06-06 07:21:45rhettingersetmessageid: <1244272905.15.0.176169014143.issue6219@psf.upfronthosting.co.za>
2009-06-06 07:21:44rhettingerlinkissue6219 messages
2009-06-06 07:21:43rhettingercreate