]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed comparison: i < k < j should be i <= k < j.
authorGuido van Rossum <guido@python.org>
Wed, 3 Jun 1992 17:58:43 +0000 (17:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Jun 1992 17:58:43 +0000 (17:58 +0000)
Doc/ref.tex
Doc/ref/ref.tex

index 0edec66bca80da94672a3039a6373d65ae1fc093..875659ef35b4e3d3a729b0241e351dfde9b605b4 100644 (file)
@@ -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}
index 0edec66bca80da94672a3039a6373d65ae1fc093..875659ef35b4e3d3a729b0241e351dfde9b605b4 100644 (file)
@@ -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}