mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Added optional None arguments to itertools.islice().
This commit is contained in:
parent
d2f70cbe8e
commit
b2594050ea
4 changed files with 27 additions and 14 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue