summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-12-05 09:25:51 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-12-05 09:25:51 (GMT)
commitb2594050ea83d0fc9ddaeed2e33ec2436e9ca1bc (patch)
treefa2dd706cc0a7fe9136216fb0c45c88088205df8 /Doc/lib
parentd2f70cbe8e2a0e50c2991071305450dbdaf0389a (diff)
downloadcpython-b2594050ea83d0fc9ddaeed2e33ec2436e9ca1bc.zip
cpython-b2594050ea83d0fc9ddaeed2e33ec2436e9ca1bc.tar.gz
cpython-b2594050ea83d0fc9ddaeed2e33ec2436e9ca1bc.tar.bz2
Added optional None arguments to itertools.islice().
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libitertools.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libitertools.tex b/Doc/lib/libitertools.tex
index be53015..fbde69d 100644
--- a/Doc/lib/libitertools.tex
+++ b/Doc/lib/libitertools.tex
@@ -261,6 +261,11 @@ by functions or loops that truncate the stream.
yield element
next += step
\end{verbatim}
+
+ If \var{start} is \code{None}, then iteration starts at zero.
+ If \var{step} is \code{None}, then the step defaults to one.
+ \versionchanged[accept \code{None} values for default \var{start} and
+ \var{step}]{2.5}
\end{funcdesc}
\begin{funcdesc}{izip}{*iterables}