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 martin.panter
Recipients ezio.melotti, martin.panter, saeed
Date 2016-11-03.07:51:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478159488.71.0.352234557625.issue28594@psf.upfronthosting.co.za>
In-reply-to
Content
I haven’t looked at your code, but I think you may have misunderstood how variable assignments work in Python. See <https://docs.python.org/3.5/faq/programming.html#why-did-changing-list-y-also-change-list-x>.

When you assign an object such as [0, 0] to a variable name, the name is “bound” to the object. When you assign to a second name, the second name is bound to exactly the same object. When you alter the object through one name, the change is visible from any of the bound names.

Closing this, but let me know if I got it wrong.
History
Date User Action Args
2016-11-03 07:51:28martin.pantersetrecipients: + martin.panter, ezio.melotti, saeed
2016-11-03 07:51:28martin.pantersetmessageid: <1478159488.71.0.352234557625.issue28594@psf.upfronthosting.co.za>
2016-11-03 07:51:28martin.panterlinkissue28594 messages
2016-11-03 07:51:28martin.pantercreate