]> granicus.if.org Git - python/commitdiff
SF patch #797180: Bug 792656: slicing explained
authorRaymond Hettinger <python@rcn.com>
Sat, 30 Aug 2003 23:31:31 +0000 (23:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 30 Aug 2003 23:31:31 +0000 (23:31 +0000)
Doc/lib/libstdtypes.tex

index 6b6ccbe0f6144c673664307e1e7e40db79ed9fd6..49f2daec3cd96259bfb2311c9aec933e4af350f7 100644 (file)
@@ -530,8 +530,9 @@ In Python 2.3 and beyond, \var{x} may be a string of any length.
   \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}