We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f19ad commit feec759Copy full SHA for feec759
Doc/reference/datamodel.rst
@@ -325,6 +325,12 @@ Some sequences also support "extended slicing" with a third *step* parameter:
325
``i = start + n*step`` and ``0 <= n``, such that ``start <= i < stop`` for
326
``0 <= step``, and ``stop < i <= start`` for ``step < 0``.
327
328
+Slicing parameters can be omitted:
329
+* When *step* is omitted, it defaults to 1.
330
+* When *start* is omitted, the selection starts from the 1st index depending on
331
+the *step* direction (index 0 for ``0 < step``, subscript -1 for ``step < 0``).
332
+* When *end* is omitted, the selection ends when there isn't any element left.
333
+
334
Sequences are distinguished according to their mutability:
335
336
0 commit comments