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 xtreak
Recipients jjhwoldringh, xtreak
Date 2020-01-17.13:03:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579266187.79.0.582557597002.issue39368@roundup.psfhosted.org>
In-reply-to
Content
You're referencing to the same list 3 times in B. So modifying it once means all the elements referring to same object reflect the change. Make a copy of the list during append to ensure modification of one doesn't affect other. This is not a python bug.
History
Date User Action Args
2020-01-17 13:03:07xtreaksetrecipients: + xtreak, jjhwoldringh
2020-01-17 13:03:07xtreaksetmessageid: <1579266187.79.0.582557597002.issue39368@roundup.psfhosted.org>
2020-01-17 13:03:07xtreaklinkissue39368 messages
2020-01-17 13:03:07xtreakcreate