[issue37319] Deprecate using random.randrange() with non-integers

Raymond Hettinger report at bugs.python.org
Mon Mar 23 11:36:40 EDT 2020


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

How about we just leave it alone.  AFAICT nothing is broken -- no user is having any issues.  We really don't need to go through every tool in the standard library that uses int() and document that it accepts any type that defines __int__, nor do we need to test those cases.  I understand that you are bugged by this but it isn't a real problem.

----------

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


More information about the Python-bugs-list mailing list