From: wim glenn Date: Tue, 5 Sep 2023 19:22:27 +0000 (-0500) Subject: gh-107755: Document the correct default value of slice step (GH-107756) X-Git-Tag: v3.13.0a1~599 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bf350b0662fcf1a8b43b9293e6c8ecf3c711561;p=thirdparty%2FPython%2Fcpython.git gh-107755: Document the correct default value of slice step (GH-107756) Document the correct default value of slice step. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 88a7fdfe6f0d..d9974c6350fe 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