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

Serhiy Storchaka report at bugs.python.org
Sun Mar 22 17:07:01 EDT 2020


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

Using index() simplifies the code. Adding deprecation warnings complicates it. The PR consists of two commits, look at the first one to see how the code can finally look.

If you think that the deprecation is not needed, we can just keep the simplified version.

----------

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


More information about the Python-bugs-list mailing list