Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit3fa096a

Browse files
adamtheturtlemiss-islington
authored andcommitted
Correct the argument names forsecrets.choice andsecrets.randbelow insecrets.rst (pythonGH-118098)
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.(cherry picked from commitc444362)Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
1 parent9f8f14a commit3fa096a

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)

[8]ページ先頭

©2009-2025 Movatter.jp