]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-107755: Document the correct default value of slice step (GH-107756) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 Sep 2023 13:13:31 +0000 (06:13 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2023 13:13:31 +0000 (15:13 +0200)
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 <hey@wimglenn.com>
Doc/library/functions.rst

index b271067ae639c568fb7e16c7798bf047de9a3667..593591f6ceca17338b6883adf2bdd55a38f9df65 100644 (file)
@@ -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