]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125897: Mark range function parameters as positional only (#125945)
authorKonstantin Baikov <konstantin.baikov@gmail.com>
Mon, 11 Aug 2025 23:12:55 +0000 (01:12 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Aug 2025 23:12:55 +0000 (19:12 -0400)
Doc/library/functions.rst

index 857b40f3ba155c63162bdf16b98ded1b2989962e..a07046a965ee639149a479dda458fe45ce997953 100644 (file)
@@ -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