summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-08-30 23:31:31 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-08-30 23:31:31 (GMT)
commit8170200ce2b437fab4e05d908cb30ea63cb557c9 (patch)
treeb774f5fad42c0a77b01b5a461ac76b7d9033f57d
parent57d71289a1243aa6ee7d3d3532659d97d6ef2520 (diff)
downloadcpython-8170200ce2b437fab4e05d908cb30ea63cb557c9.zip
cpython-8170200ce2b437fab4e05d908cb30ea63cb557c9.tar.gz
cpython-8170200ce2b437fab4e05d908cb30ea63cb557c9.tar.bz2
SF patch #797180: Bug 792656: slicing explained
-rw-r--r--Doc/lib/libstdtypes.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 6b6ccbe0..49f2dae 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -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}