Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-125897: Mark range function parameters as positional only (GH-125945)
(cherry picked from commit 0c83daa)

Co-authored-by: Konstantin Baikov <konstantin.baikov@gmail.com>
  • Loading branch information
kbaikov authored and miss-islington committed Aug 11, 2025
commit 5bea319dc06001774628a29d9deb371c938926e4
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1717,8 +1717,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
Expand Down
Loading