Skip to content

Commit

Permalink
[3.11] Backport docstring improvement from 3.12 (python#98288)
Browse files Browse the repository at this point in the history
Backport docstring improvement from 3.12
  • Loading branch information
rhettinger authored Oct 15, 2022
1 parent 42511fc commit 099620b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def randbytes(self, n):
## -------------------- integer methods -------------------

def randrange(self, start, stop=None, step=_ONE):
"""Choose a random item from range(start, stop[, step]).
"""Choose a random item from range(stop) or range(start, stop[, step]).
This fixes the problem with randint() which includes the
endpoint; in Python this is usually not what you want.
Roughly equivalent to ``choice(range(start, stop, step))`` but
supports arbitrarily large ranges and is optimized for common cases.
"""

Expand Down

0 comments on commit 099620b

Please sign in to comment.