mirror of
https://github.com/python/cpython.git
synced 2026-04-04 19:13:16 +00:00
[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 9bf350b066)
Co-authored-by: wim glenn <hey@wimglenn.com>
This commit is contained in:
parent
5fbd77165b
commit
1f115a8822
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue