diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-08 13:13:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 13:13:31 (GMT) |
commit | eeaae92b496bf75e8c937af1d5fd277d71fb7334 (patch) | |
tree | 2e278ed811da396a27cafb39630c02ee6515f91b | |
parent | 5ca2a68bbe385ccd3eb2e3291a1d849b1a852c5b (diff) | |
download | cpython-eeaae92b496bf75e8c937af1d5fd277d71fb7334.zip cpython-eeaae92b496bf75e8c937af1d5fd277d71fb7334.tar.gz cpython-eeaae92b496bf75e8c937af1d5fd277d71fb7334.tar.bz2 |
[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 <hey@wimglenn.com>
-rw-r--r-- | Doc/library/functions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index b271067..593591f 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 |