[issue45026] More compact range iterator

Łukasz Langa report at bugs.python.org
Fri Sep 24 07:12:48 EDT 2021


Łukasz Langa <lukasz at langa.pl> added the comment:

Serhiy, right: looks like the difference stems from recreating the range objects, not from iteration. But Dennis' observation still stands: using `for i in range(...):` is a very popular idiom. If that becomes slower than the status quo, we will be making existing Python programs slower as well.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45026>
_______________________________________


More information about the Python-bugs-list mailing list