https://github.com/python/cpython/commit/94f57ac2062c2a8130171cbf563e06db5815047f commit: 94f57ac2062c2a8130171cbf563e06db5815047f branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: AA-Turner <[email protected]> date: 2025-10-07T19:14:40+01:00 summary:
[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 dd079db4b96fa474b8e6d71ae9db662c4ce28caf) Co-authored-by: Evan Kohilas <[email protected]> files: M Doc/library/functions.rst diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 4fb0414c89683f..f28c1a5ad4a326 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
