Skip to content

gh-131885: Updates docs to make max and min iterable param positional only #131868

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1220,9 +1220,9 @@ are always available. They are listed here in alphabetical order.
Added the *strict* parameter.


.. function:: max(iterable, *, key=None)
max(iterable, *, default, key=None)
max(arg1, arg2, *args, key=None)
.. function:: max(iterable, /, *, key=None)
max(iterable, /, *, default, key=None)
max(arg1, arg2, /, *args, key=None)

Return the largest item in an iterable or the largest of two or more
arguments.
Expand Down Expand Up @@ -1258,9 +1258,9 @@ are always available. They are listed here in alphabetical order.
:ref:`typememoryview` for more information.


.. function:: min(iterable, *, key=None)
min(iterable, *, default, key=None)
min(arg1, arg2, *args, key=None)
.. function:: min(iterable, /, *, key=None)
min(iterable, /, *, default, key=None)
min(arg1, arg2, /, *args, key=None)

Return the smallest item in an iterable or the smallest of two or more
arguments.
Expand Down
Loading