Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.13] Correct the argument names for secrets.choice and secrets.randbelow in secrets.rst (GH-118098) #118906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
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
Correct the argument names for secrets.choice and `secrets.randbelo…
…w` 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>
  • Loading branch information
adamtheturtle authored and miss-islington committed May 10, 2024
commit 7bbdbf1d02616f2dd5a9d4cb942ba216a467e5ca
6 changes: 3 additions & 3 deletions 6 Doc/library/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ randomness that your operating system provides.
sources provided by the operating system. See
:class:`random.SystemRandom` for additional details.

.. function:: choice(sequence)
.. function:: choice(seq)

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

.. function:: randbelow(n)
.. function:: randbelow(exclusive_upper_bound)

Return a random int in the range [0, *n*).
Return a random int in the range [0, *exclusive_upper_bound*).

.. function:: randbits(k)

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.