Skip to content

Commit 94f57ac

Browse files
[3.14] gh-131885: Use positional-only markers for max() and min() (GH-131868) (#137656)
gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868) (cherry picked from commit dd079db) Co-authored-by: Evan Kohilas <[email protected]>
1 parent 572e433 commit 94f57ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/functions.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,9 +1217,9 @@ are always available. They are listed here in alphabetical order.
12171217
Added the *strict* parameter.
12181218

12191219

1220-
.. function:: max(iterable, *, key=None)
1221-
max(iterable, *, default, key=None)
1222-
max(arg1, arg2, *args, key=None)
1220+
.. function:: max(iterable, /, *, key=None)
1221+
max(iterable, /, *, default, key=None)
1222+
max(arg1, arg2, /, *args, key=None)
12231223
12241224
Return the largest item in an iterable or the largest of two or more
12251225
arguments.
@@ -1255,9 +1255,9 @@ are always available. They are listed here in alphabetical order.
12551255
:ref:`typememoryview` for more information.
12561256

12571257

1258-
.. function:: min(iterable, *, key=None)
1259-
min(iterable, *, default, key=None)
1260-
min(arg1, arg2, *args, key=None)
1258+
.. function:: min(iterable, /, *, key=None)
1259+
min(iterable, /, *, default, key=None)
1260+
min(arg1, arg2, /, *args, key=None)
12611261
12621262
Return the smallest item in an iterable or the smallest of two or more
12631263
arguments.

0 commit comments

Comments
 (0)