[issue42222] Modernize integer test/conversion in randrange()

Raymond Hettinger report at bugs.python.org
Sat Oct 31 14:19:03 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> These propositions were rejected by you. 
> Have you reconsidered your decision?

I was reluctant to break any existing code.
Now, I'm unsure and am inclined to harmonize it with range().

What do you think?
Should we have ever supported float arguments
for an integer domain function?

----------

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


More information about the Python-bugs-list mailing list