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 terry.reedy
Recipients belopolsky, josh.r, meador.inge, pitrou, remi.lapeyre, scoder, serhiy.storchaka, terry.reedy, yselivanov
Date 2020-11-28.12:29:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Batuhan Taskaya opened a duplicate issue #42454.  Since it includes PR-23496, with some review, and at least as much discussion, I am closing this issue, contrary to normal policy.

Worthwhile? Batuhan found about 100000 constant slices in 3200 PyPI packages, and 3-50% speedup.

Rémi asked "Couldn't [slices] hash like a tuple (start, stop, step)?"
Batuhad used the tuple analogy - hashability and hash depends on components.  See PR for details.

Josh: the PR defines TYPE_SLICE as ':'.
Date User Action Args
2020-11-28 12:29:53terry.reedysetrecipients: + terry.reedy, belopolsky, pitrou, scoder, meador.inge, serhiy.storchaka, yselivanov, josh.r, remi.lapeyre
2020-11-28 12:29:53terry.reedysetmessageid: <>
2020-11-28 12:29:53terry.reedylinkissue11107 messages
2020-11-28 12:29:53terry.reedycreate