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 eric.smith
Recipients eric.smith, ihalil95
Date 2020-05-08.16:21:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588954871.73.0.548403330608.issue40565@roundup.psfhosted.org>
In-reply-to
Content
This isn't doing what you think. Because you throw away the object after computing its id, the same memory is reused and you get the same id.  Consider:

>>> a = [1,2,3]
>>> b = [3,4,5]
>>> id(a[:]) == id(b[:])
True

There's no problem here, but it does show that you need to be careful with "is" and "id".
History
Date User Action Args
2020-05-08 16:21:11eric.smithsetrecipients: + eric.smith, ihalil95
2020-05-08 16:21:11eric.smithsetmessageid: <1588954871.73.0.548403330608.issue40565@roundup.psfhosted.org>
2020-05-08 16:21:11eric.smithlinkissue40565 messages
2020-05-08 16:21:11eric.smithcreate