diff options
| author | Raymond Hettinger <python@rcn.com> | 2004-12-05 09:25:51 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2004-12-05 09:25:51 +0000 |
| commit | b2594050ea83d0fc9ddaeed2e33ec2436e9ca1bc (patch) | |
| tree | fa2dd706cc0a7fe9136216fb0c45c88088205df8 /Doc/lib/libitertools.tex | |
| parent | d2f70cbe8e2a0e50c2991071305450dbdaf0389a (diff) | |
| download | cpython-git-b2594050ea83d0fc9ddaeed2e33ec2436e9ca1bc.tar.gz | |
Added optional None arguments to itertools.islice().
Diffstat (limited to 'Doc/lib/libitertools.tex')
| -rw-r--r-- | Doc/lib/libitertools.tex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libitertools.tex b/Doc/lib/libitertools.tex index be53015f7c..fbde69dad1 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} |
