Skip to content

Commit 45ea51a

Browse files
kbaikovmiss-islington
authored andcommitted
pythongh-125897: Mark range function parameters as positional only (pythonGH-125945)
(cherry picked from commit 0c83daa) Co-authored-by: Konstantin Baikov <[email protected]>
1 parent 019238a commit 45ea51a

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
@@ -1729,8 +1729,8 @@ are always available. They are listed here in alphabetical order.
17291729

17301730

17311731
.. _func-range:
1732-
.. class:: range(stop)
1733-
range(start, stop, step=1)
1732+
.. class:: range(stop, /)
1733+
range(start, stop, step=1, /)
17341734
:noindex:
17351735

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

0 commit comments

Comments
 (0)