8000 fix various typos in random module's documentation by partev · Pull Request #96912 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

fix various typos in random module's documentation #96912

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
Sep 18, 2022
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
8 changes: 4 additions & 4 deletions Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ Functions for integers

The positional argument pattern matches the :func:`range` function.

Keyword arguments should not be used because they can interpreted
in unexpected ways. For example ``range(start=100)`` is interpreted
as ``range(0, 100, 1)``.
Keyword arguments should not be used because they can be interpreted
in unexpected ways. For example ``randrange(start=100)`` is interpreted
as ``randrange(0, 100, 1)``.

.. versionchanged:: 3.2
:meth:`randrange` is more sophisticated about producing equally distributed
Expand All @@ -152,7 +152,7 @@ Functions for integers
.. function:: getrandbits(k)

Returns a non-negative Python integer with *k* random bits. This method
is supplied with the MersenneTwister generator and some other generators
is supplied with the Mersenne Twister generator and some other generators
may also provide it as an optional part of the API. When available,
:meth:`getrandbits` enables :meth:`randrange` to handle arbitrarily large
ranges.
Expand Down
0