From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 11 Aug 2025 23:37:52 +0000 (+0200) Subject: [3.13] gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868... X-Git-Tag: v3.13.7~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1e1c880eee6cd36fe7fccdd362871b5454186c9;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868) (#137657) Co-authored-by: Evan Kohilas --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 9a7b3c4e7c11..4acc24d352ac 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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.