mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-27385: Clarify docstring for groupby() (#3738)
This commit is contained in:
parent
57c2561c8c
commit
49392c63a2
2 changed files with 4 additions and 3 deletions
|
@ -176,8 +176,9 @@ static PyMethodDef groupby_methods[] = {
|
|||
};
|
||||
|
||||
PyDoc_STRVAR(groupby_doc,
|
||||
"groupby(iterable[, keyfunc]) -> create an iterator which returns\n\
|
||||
(key, sub-iterator) grouped by each value of key(value).\n");
|
||||
"groupby(iterable, key=None) -> make an iterator that returns consecutive\n\
|
||||
keys and groups from the iterable. If the key function is not specified or\n\
|
||||
is None, the element itself is used for grouping.\n");
|
||||
|
||||
static PyTypeObject groupby_type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue