From db7dcffa27424fde33b52118f22d5ddf5e998e3d Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 6 Dec 2003 22:29:43 +0000 Subject: [PATCH] Edit description a bit --- Doc/lib/libitertools.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/lib/libitertools.tex b/Doc/lib/libitertools.tex index 82912b05012..cd867b00ac9 100644 --- a/Doc/lib/libitertools.tex +++ b/Doc/lib/libitertools.tex @@ -132,9 +132,9 @@ by functions or loops that truncate the stream. \begin{funcdesc}{groupby}{iterable\optional{, key}} Make an iterator that returns consecutive keys and groups from the - \var{iterable}. \var{key} is function computing a key value for each + \var{iterable}. \var{key} is a function computing a key value for each element. If not specified or is \code{None}, \var{key} defaults to an - identity function (returning the element unchanged). Generally, the + identity function and returns the element unchanged. Generally, the iterable needs to already be sorted on the same key function. The returned group is itself an iterator that shares the underlying