[issue42772] randrange() mishandles step when stop is None

Serhiy Storchaka report at bugs.python.org
Mon Dec 28 16:28:33 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

> Another solution is to use an identity test for the step argument

Should I restore that optimization in issue37319?

----------

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


More information about the Python-bugs-list mailing list