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

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
Loading
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 12 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)
ekohilas marked this conversation as resolved.
Show resolved Hide resolved

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)
picnixz marked this conversation as resolved.
Show resolved Hide resolved
min(arg1, arg2, /, *args, key=None)
ekohilas marked this conversation as resolved.
Show resolved Hide resolved

Return the smallest item in an iterable or the smallest of two or more
arguments.
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.