Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 26e2f2c

Browse filesBrowse 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
Copy full SHA for 26e2f2c

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Doc/library/functions.rst

Copy file name to clipboardExpand all lines: Doc/library/functions.rst
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.