Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 47097:b2403d470b69
Rename enumerate() kw argument name to "iterable" and fix "sequence"->"iterable" in some docstrings.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 16 May 2008 13:27:32 +0000 |
| parents | 58a0d5524f9a |
| children | 96b34263e448 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Fri May 16 07:12:44 2008 +0000 +++ b/Python/bltinmodule.c Fri May 16 13:27:32 2008 +0000 @@ -369,9 +369,9 @@ } PyDoc_STRVAR(filter_doc, -"filter(function or None, sequence) --> filter object\n\ +"filter(function or None, iterable) --> filter object\n\ \n\ -Return an iterator yielding those items of sequence for which function(item)\n\ +Return an iterator yielding those items of iterable for which function(item)\n\ is true. If function is None, return the items that are true."); PyTypeObject PyFilter_Type = { @@ -1174,7 +1174,7 @@ } PyDoc_STRVAR(iter_doc, -"iter(collection) -> iterator\n\ +"iter(iterable) -> iterator\n\ iter(callable, sentinel) -> iterator\n\ \n\ Get an iterator from an object. In the first form, the argument must\n\ @@ -1942,10 +1942,10 @@ } PyDoc_STRVAR(sum_doc, -"sum(sequence[, start]) -> value\n\ +"sum(iterable[, start]) -> value\n\ \n\ -Returns the sum of a sequence of numbers (NOT strings) plus the value\n\ -of parameter 'start' (which defaults to 0). When the sequence is\n\ +Returns the sum of an iterable of numbers (NOT strings) plus the value\n\ +of parameter 'start' (which defaults to 0). When the iterable is\n\ empty, returns start.");
