Skip to content

Commit 1f115a8

Browse files
[3.11] gh-107755: Document the correct default value of slice step (GH-107756) (#108956)
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 5fbd771 commit 1f115a8

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
@@ -1630,7 +1630,7 @@ are always available. They are listed here in alphabetical order.
16301630

16311631

16321632
.. class:: slice(stop)
1633-
slice(start, stop, step=1)
1633+
slice(start, stop, step=None)
16341634

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

0 commit comments

Comments
 (0)