[issue42147] Micro optimization for longrange iteration if step is 1

Dong-hee Na report at bugs.python.org
Sun Oct 25 22:41:23 EDT 2020


Dong-hee Na <donghee.na at python.org> added the comment:

@methane

To be more precise, [[] for _ in range(10000)] will not effort this patch because range(10000) does not create longrangeiter object.
This patch will affect to if the number is veeery large.

On the other hand, GH-22479 is affect to all index API() whether the number is large or small.

p.s by the way, Naoki is the last name or first name? ;)

----------

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


More information about the Python-bugs-list mailing list