diff Doc/lib/libstdtypes.tex @ 30251:0dfafaa10401 2.3

SF patch #797180: Bug 792656: slicing explained
author Raymond Hettinger <python@rcn.com>
date Sat, 30 Aug 2003 23:35:56 +0000
parents e3c9b48de60a
children 4aa84a8b1fe4
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex	Sat Aug 30 23:24:37 2003 +0000
+++ b/Doc/lib/libstdtypes.tex	Sat Aug 30 23:35:56 2003 +0000
@@ -530,8 +530,9 @@
   \code{\var{x} = \var{i} + \var{n}*\var{k}} such that \code{0}
   \code{<=} \var{n} \code{<} \code{abs(i-j)}.  If \var{i} or \var{j}
   is greater than \code{len(\var{s})}, use \code{len(\var{s})}.  If
-  \var{i} or \var{j} are ommitted then they become ``end'' values
-  (which end depends on the sign of \var{k}).
+  \var{i} or \var{j} are omitted then they become ``end'' values
+  (which end depends on the sign of \var{k}).  Note, \var{k} cannot
+  be zero.
 
 \end{description}