Skip to content

Commit af8db2b

Browse files
[3.12] Correct the argument names for secrets.choice and secrets.randbelow in secrets.rst (GH-118098) (GH-118907)
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`. (cherry picked from commit c444362) Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
1 parent 9f8f14a commit af8db2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/secrets.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ randomness that your operating system provides.
4242
sources provided by the operating system. See
4343
:class:`random.SystemRandom` for additional details.
4444

45-
.. function:: choice(sequence)
45+
.. function:: choice(seq)
4646

4747
Return a randomly chosen element from a non-empty sequence.
4848

49-
.. function:: randbelow(n)
49+
.. function:: randbelow(exclusive_upper_bound)
5050

51-
Return a random int in the range [0, *n*).
51+
Return a random int in the range [0, *exclusive_upper_bound*).
5252

5353
.. function:: randbits(k)
5454

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy