https://github.com/python/cpython/commit/dd079db4b96fa474b8e6d71ae9db662c4ce28caf
commit: dd079db4b96fa474b8e6d71ae9db662c4ce28caf
branch: main
author: Evan Kohilas <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-08-12T00:29:17+01:00
summary:
gh-131885: Use positional-only markers for ``max()`` and ``min()`` (#131868)
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index a07046a965ee63..c92dfec5f3fa05 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1220,9 +1220,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.
@@ -1258,9 +1258,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]