[issue45026] More compact range iterator
Serhiy Storchaka
report at bugs.python.org
Sun Sep 5 09:16:31 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
PR 28176 implements idea proposed by Dennis in msg400396. It keeps the current and stop values instead of the initial start, index and initial length. I do not have data yet, but it is expected that it's iteration may be faster (for large integers), but __lenght_hint__ should be slower.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45026>
_______________________________________
More information about the Python-bugs-list
mailing list