From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 11 Sep 2025 09:15:24 +0000 (+0200) Subject: [3.14] gh-125897: Mark range function parameters as positional only (GH-125945) ... X-Git-Tag: v3.14.0rc3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=735ac97e160e7015c3f2465a3d993cb5d8c9e4f9;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-125897: Mark range function parameters as positional only (GH-125945) (#137652) Co-authored-by: Konstantin Baikov --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 33840c3414fd..4fb0414c8968 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1732,8 +1732,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