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 ihalil95
Recipients ihalil95
Date 2020-05-08.16:06:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588954019.78.0.804890045362.issue40565@roundup.psfhosted.org>
In-reply-to
Content
While id(a[:]) and id(a[0:3]) are the same however is comparison returns False. I thought it could be a bug.

>>> a = [1, 2, 3]
>>> id(a[:]) == id(a[0:3])
True
>>> a[:] is a[0:3]
False
History
Date User Action Args
2020-05-08 16:06:59ihalil95setrecipients: + ihalil95
2020-05-08 16:06:59ihalil95setmessageid: <1588954019.78.0.804890045362.issue40565@roundup.psfhosted.org>
2020-05-08 16:06:59ihalil95linkissue40565 messages
2020-05-08 16:06:59ihalil95create