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 ef4aff1 commit d4cc863Copy full SHA for d4cc863
Doc/reference/datamodel.rst
@@ -316,8 +316,9 @@ but ``a[-n-1]`` doesn't exit.
316
.. index:: single: slicing
317
318
Sequences also support slicing: ``a[start:stop]`` selects all items with index
319
-*i* such that ``start <= i < stop``. When used as an expression, a slice is a
320
-sequence of the same type. The comment above about negative indexes also applies
+*i* such that ``start <= i < stop``. When used as an expression, a slice should be
+a sequence of the same type, but must be a sequence behaving as one.
321
+The comment above about negative indexes also applies
322
to negative slice positions.
323
324
Some sequences also support "extended slicing" with a third *step* parameter:
0 commit comments