From b36cb9eca90cd0999fafa1e107818630c07595dd Mon Sep 17 00:00:00 2001 From: wim glenn Date: Tue, 5 Sep 2023 14:22:27 -0500 Subject: [PATCH] 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 --- Doc/library/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 2468e53cd596a1..6e048aa7eaeeab 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1630,7 +1630,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