mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-131885: Use positional-only markers for `max() and min()` (#131868)
This commit is contained in:
parent
7140b99b0d
commit
dd079db4b9
1 changed files with 6 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue