[New-bugs-announce] [issue42772] randrange() mishandles step when stop is None

Raymond Hettinger report at bugs.python.org
Mon Dec 28 14:23:37 EST 2020


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

When stop is None, the step argument is ignored:

>>> randrange(1000, None, 100)
651
>>> randrange(1000, step=100)
673

----------
components: Library (Lib)
messages: 383919
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: randrange() mishandles step when stop is None
type: behavior
versions: Python 3.10

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


More information about the New-bugs-announce mailing list