Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
More concise blurb
  • Loading branch information
rhettinger committed Dec 25, 2020
commit 85cc9ee2cc9edf476b5ebf1c2832151389b3a1bd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Harmonized random.randrange() argument handling to better match
that used by range().
Harmonized random.randrange() argument handling to match range().

* The integer test/conversion in randrange() now uses operator.index().
* The integer test and conversion in randrange() now uses
operator.index().
* Non-integer arguments to randrange() are deprecated.
* The *ValueError* is deprecated in favor of a *TypeError*.
* It now runs a little faster than before.
Expand Down