Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue45026> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com