Message381996
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:53 | terry.reedy | set | recipients:
+ terry.reedy, belopolsky, pitrou, scoder, meador.inge, serhiy.storchaka, yselivanov, josh.r, remi.lapeyre |
2020-11-28 12:29:53 | terry.reedy | set | messageid: <1606566593.28.0.420810640758.issue11107@roundup.psfhosted.org> |
2020-11-28 12:29:53 | terry.reedy | link | issue11107 messages |
2020-11-28 12:29:53 | terry.reedy | create | |
|