From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:13:31 +0000 (-0700) Subject: [3.12] gh-107755: Document the correct default value of slice step (GH-107756) (... X-Git-Tag: v3.12.0rc3~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eeaae92b496bf75e8c937af1d5fd277d71fb7334;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-107755: Document the correct default value of slice step (GH-107756) (#108955) gh-107755: Document the correct default value of slice step (GH-107756) Document the correct default value of slice step. (cherry picked from commit 9bf350b0662fcf1a8b43b9293e6c8ecf3c711561) Co-authored-by: wim glenn --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index b271067ae639..593591f6ceca 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1631,7 +1631,7 @@ are always available. They are listed here in alphabetical order. .. class:: slice(stop) - slice(start, stop, step=1) + slice(start, stop, step=None) Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to