]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 18:14:40 +0000 (20:14 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 18:14:40 +0000 (19:14 +0100)
gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868)
(cherry picked from commit dd079db4b96fa474b8e6d71ae9db662c4ce28caf)

Co-authored-by: Evan Kohilas <ekohilas@users.noreply.github.com>
Doc/library/functions.rst

index 4fb0414c89683f2b1c43ac4f3196af045892a7e1..f28c1a5ad4a32602c8990801b123966faed7654b 100644 (file)
@@ -1217,9 +1217,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.
@@ -1255,9 +1255,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.