]> granicus.if.org Git - python/commitdiff
Expand itertools paragraph
authorAndrew M. Kuchling <amk@amk.ca>
Sun, 2 Mar 2003 02:13:52 +0000 (02:13 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sun, 2 Mar 2003 02:13:52 +0000 (02:13 +0000)
Doc/whatsnew/whatsnew23.tex

index b6b5c5873da49e04c45b80bd122791201ad7ba0e..7c9634213f36ac3b777c679cda0e741f8206ba45 100644 (file)
@@ -1354,9 +1354,15 @@ sequence type.  For example:
 \item The \module{imaplib} module now supports IMAP over SSL.
 (Contributed by Piers Lauder and Tino Lange.)
 
-\item The \ulink{\module{itertools}}{../lib/module-itertools.html}
-module provides several functions to support efficient looping using
-iterators.
+\item The \module{itertools} contains a number of useful functions for
+use with iterators, inspired by various functions provided by the ML
+and Haskell languages.  For example,
+\code{itertools.ifilter(predicate, iterator)} returns all elements in
+the iterator for which the function \function{predicate()} returns
+\constant{True}, and \code{itertools.times(\var{N}, obj)} returns
+\code{obj} \var{N} times.  There are a number of other functions in
+the module; see the \ulink{package's reference
+documentation}{../lib/module-itertools.html} for details.
 
 \item Two new functions in the \module{math} module,
 \function{degrees(\var{rads})} and \function{radians(\var{degs})},