Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41c3e00

Browse files
committed
Expand itertools paragraph
1 parent 6cca754 commit 41c3e00

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,9 +1354,15 @@ \section{New, Improved, and Deprecated Modules}
13541354
\item The \module{imaplib} module now supports IMAP over SSL.
13551355
(Contributed by Piers Lauder and Tino Lange.)
13561356

1357-
\item The \ulink{\module{itertools}}{../lib/module-itertools.html}
1358-
module provides several functions to support efficient looping using
1359-
iterators.
1357+
\item The \module{itertools} contains a number of useful functions for
1358+
use with iterators, inspired by various functions provided by the ML
1359+
and Haskell languages. For example,
1360+
\code{itertools.ifilter(predicate, iterator)} returns all elements in
1361+
the iterator for which the function \function{predicate()} returns
1362+
\constant{True}, and \code{itertools.times(\var{N}, obj)} returns
1363+
\code{obj} \var{N} times. There are a number of other functions in
1364+
the module; see the \ulink{package's reference
1365+
documentation}{../lib/module-itertools.html} for details.
13601366

13611367
\item Two new functions in the \module{math} module,
13621368
\function{degrees(\var{rads})} and \function{radians(\var{degs})},

0 commit comments

Comments
 (0)