]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107755: Document the correct default value of slice step (GH-107756)
authorwim glenn <hey@wimglenn.com>
Tue, 5 Sep 2023 19:22:27 +0000 (14:22 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2023 19:22:27 +0000 (21:22 +0200)
Document the correct default value of slice step.

Doc/library/functions.rst

index 88a7fdfe6f0d50495fd574c1f232a01f2f158c17..d9974c6350fed116efe89f982efa205c0e9b94a6 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