Skip to content

Commit 8531f5b

Browse files
[3.13] gh-125897: Mark range function parameters as positional only (GH-125945) (#137653)
Co-authored-by: Konstantin Baikov <[email protected]>
1 parent e236568 commit 8531f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,8 +1717,8 @@ are always available. They are listed here in alphabetical order.
17171717

17181718

17191719
.. _func-range:
1720-
.. class:: range(stop)
1721-
range(start, stop, step=1)
1720+
.. class:: range(stop, /)
1721+
range(start, stop, step=1, /)
17221722
:noindex:
17231723

17241724
Rather than being a function, :class:`range` is actually an immutable

0 commit comments

Comments
 (0)