Skip to content

Commit 9bf350b

Browse files
authored
gh-107755: Document the correct default value of slice step (GH-107756)
Document the correct default value of slice step.
1 parent 3f89b25 commit 9bf350b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy