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
Next Next commit
Add more detail to blurb
  • Loading branch information
rhettinger committed Dec 24, 2020
commit ab9aeb75d07e8bd2bfff19a163f2b5f0ffd28296
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
Modernized integer test/conversion in randrange() to use operator.index().
Harmonized random.randrange() argument handling to better match
that used by range().

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

(Contributed by Raymond Hettinger and Serhiy Storchaka.)