]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-107755: Document the correct default value of slice step (GH-107756) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Sep 2023 00:11:53 +0000 (17:11 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 00:11:53 +0000 (02:11 +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 2468e53cd596a1ca8f269f3fb550a0695d76b4f1..6e048aa7eaeeab2d05044a4ad1e29aaf38bde810 100644 (file)
@@ -1630,7 +1630,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