[issue45026] More compact range iterator
Serhiy Storchaka
report at bugs.python.org
Fri Aug 27 03:24:03 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
step can be negative. So the condition should be more complex: ((r->stop > 0) ? (result < r->stop) : (result > r->stop)). And it would look much more complex for longrangeiterobject.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45026>
_______________________________________
More information about the Python-bugs-list
mailing list