From 9bf350b0662fcf1a8b43b9293e6c8ecf3c711561 Mon Sep 17 00:00:00 2001 From: wim glenn Date: Tue, 5 Sep 2023 14:22:27 -0500 Subject: gh-107755: Document the correct default value of slice step (GH-107756) Document the correct default value of slice step. --- 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 88a7fdf..d9974c6 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 -- cgit v0.12