https://github.com/python/cpython/commit/0c83daaf458389517989bc28625e8ba8cf24e651
commit: 0c83daaf458389517989bc28625e8ba8cf24e651
branch: main
author: Konstantin Baikov <[email protected]>
committer: terryjreedy <[email protected]>
date: 2025-08-11T19:12:55-04:00
summary:
gh-125897: Mark range function parameters as positional only (#125945)
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 857b40f3ba155c..a07046a965ee63 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1729,8 +1729,8 @@ are always available. They are listed here in
alphabetical order.
.. _func-range:
-.. class:: range(stop)
- range(start, stop, step=1)
+.. class:: range(stop, /)
+ range(start, stop, step=1, /)
:noindex:
Rather than being a function, :class:`range` is actually an immutable
_______________________________________________
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]