[issue42222] Modernize integer test/conversion in randrange()
Raymond Hettinger
report at bugs.python.org
Sat Oct 31 13:54:30 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
I had forgotten. It looks like float arguments were allowed:
>>> randrange(10.0, 20.0, 2.0)
16
Is this worth going through a deprecation cycle to get the code cleaned-up or should we live with it as is?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42222>
_______________________________________
More information about the Python-bugs-list
mailing list