8000 gh-125897: Fix the range function refering to step as a kwarg · python/cpython@26e2f2c · GitHub
[go: up one dir, main page]

Skip to content

Commit 26e2f2c

Browse files
committed
gh-125897: Fix the range function refering to step as a kwarg
Addresses the #125897 documentation discrepancy that the range function accepts step as a kwarg
1 parent 500f533 commit 26e2f2c

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

17141714

17151715
.. _func-range:
1716-
.. class:: range(stop)
1717-
range(start, stop, step=1)
1716+
.. class:: range(stop, /)
1717+
range(start, stop, step=1, /)
17181718
:noindex:
17191719

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

0 commit comments

Comments
 (0)
0