mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Edit description a bit
This commit is contained in:
parent
b7a10d1bc5
commit
db7dcffa27
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue