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 PranavSP, terry.reedy, xtreak
Date 2019-12-04.08:54:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575449643.12.0.736707792606.issue38966@roundup.psfhosted.org>
In-reply-to
Content
This is same as doing the below with list1 getting a reference of list2. Assignments in Python don't copy the value but make a reference. This is not an issue specific to IDLE as tagged and has the same behaviour under a normal REPL.

https://docs.python.org/3/reference/expressions.html#evaluation-order

>>> list2 = []
>>> list1 = list2
>>> id(list2)
4487803136
>>> id(list1)
4487803136
History
Date User Action Args
2019-12-04 08:54:03xtreaksetrecipients: + xtreak, terry.reedy, PranavSP
2019-12-04 08:54:03xtreaksetmessageid: <1575449643.12.0.736707792606.issue38966@roundup.psfhosted.org>
2019-12-04 08:54:03xtreaklinkissue38966 messages
2019-12-04 08:54:02xtreakcreate