Skip to content

Commit eeaae92

Browse files
[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 9bf350b) Co-authored-by: wim glenn <[email protected]>
1 parent 5ca2a68 commit eeaae92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ are always available. They are listed here in alphabetical order.
16311631

16321632

16331633
.. class:: slice(stop)
1634-
slice(start, stop, step=1)
1634+
slice(start, stop, step=None)
16351635

16361636
Return a :term:`slice` object representing the set of indices specified by
16371637
``range(start, stop, step)``. The *start* and *step* arguments default to

0 commit comments

Comments
 (0)