Terry J. Reedy <tjre...@udel.edu> added the comment:

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 ':'.

----------
nosy: +terry.reedy
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Move slice creation to the compiler for constants

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue11107>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to