From: Guido van Rossum Date: Wed, 3 Jun 1992 17:58:43 +0000 (+0000) Subject: Fixed comparison: i < k < j should be i <= k < j. X-Git-Tag: v0.9.8~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54e39908d848f4e3d1d09685798329ea73013262;p=thirdparty%2FPython%2Fcpython.git Fixed comparison: i < k < j should be i <= k < j. --- diff --git a/Doc/ref.tex b/Doc/ref.tex index 0edec66bca80..875659ef35b4 100644 --- a/Doc/ref.tex +++ b/Doc/ref.tex @@ -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} diff --git a/Doc/ref/ref.tex b/Doc/ref/ref.tex index 0edec66bca80..875659ef35b4 100644 --- a/Doc/ref/ref.tex +++ b/Doc/ref/ref.tex @@ -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}