Commit d6d7d5ec authored by Guido van Rossum's avatar Guido van Rossum

Fixed comparison: i < k < j should be i <= k < j.

parent f3fcfec0
......@@ -674,7 +674,7 @@ the numbers $0, 1, \ldots, n-1$. Element \verb\i\ of sequence
\index{subscription}
Sequences also support slicing: \verb\a[i:j]\ selects all elements
with index $k$ such that $i < k < j$. When used as an expression,
with index $k$ such that $i <= k < j$. When used as an expression,
a slice is a sequence of the same type --- this implies that the
index set is renumbered so that it starts at 0 again.
\index{slicing}
......
......@@ -674,7 +674,7 @@ the numbers $0, 1, \ldots, n-1$. Element \verb\i\ of sequence
\index{subscription}
Sequences also support slicing: \verb\a[i:j]\ selects all elements
with index $k$ such that $i < k < j$. When used as an expression,
with index $k$ such that $i <= k < j$. When used as an expression,
a slice is a sequence of the same type --- this implies that the
index set is renumbered so that it starts at 0 again.
\index{slicing}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment