]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 11 Aug 2025 23:37:52 +0000 (01:37 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Aug 2025 23:37:52 +0000 (23:37 +0000)
Co-authored-by: Evan Kohilas <ekohilas@users.noreply.github.com>
Doc/library/functions.rst

index 9a7b3c4e7c116fd323940f3436d5fbfa9d37d8e1..4acc24d352ac676f0ee6a64a8e033b5627d8187c 100644 (file)
@@ -1208,9 +1208,9 @@ are always available.  They are listed here in alphabetical order.
    already arranged into argument tuples, see :func:`itertools.starmap`\.
 
 
-.. 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.
@@ -1246,9 +1246,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.