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 vaultah
Recipients Joona Mörsky, vaultah
Date 2017-12-01.11:59:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512129573.59.0.213398074469.issue32194@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a bug in Python. Refer to this page for the explanation: https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly

Basically, [{}]*3 creates a list with three references to the same dictionary.
History
Date User Action Args
2017-12-01 11:59:33vaultahsetrecipients: + vaultah, Joona Mörsky
2017-12-01 11:59:33vaultahsetmessageid: <1512129573.59.0.213398074469.issue32194@psf.upfronthosting.co.za>
2017-12-01 11:59:33vaultahlinkissue32194 messages
2017-12-01 11:59:33vaultahcreate