mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
gh-125897: Mark range function parameters as positional only (#125945)
This commit is contained in:
parent
362692852f
commit
0c83daaf45
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue