@@ -369,9 +369,9 @@ filter_next(filterobject *lz)
369
369
}
370
370
371
371
PyDoc_STRVAR (filter_doc ,
372
- "filter(function or None, sequence ) --> filter object\n\
372
+ "filter(function or None, iterable ) --> filter object\n\
373
373
\n\
374
- Return an iterator yielding those items of sequence for which function(item)\n\
374
+ Return an iterator yielding those items of iterable for which function(item)\n\
375
375
is true. If function is None, return the items that are true." );
376
376
377
377
PyTypeObject PyFilter_Type = {
@@ -1174,7 +1174,7 @@ builtin_iter(PyObject *self, PyObject *args)
1174
1174
}
1175
1175
1176
1176
PyDoc_STRVAR (iter_doc ,
1177
- "iter(collection ) -> iterator\n\
1177
+ "iter(iterable ) -> iterator\n\
1178
1178
iter(callable, sentinel) -> iterator\n\
1179
1179
\n\
1180
1180
Get an iterator from an object. In the first form, the argument must\n\
@@ -1942,10 +1942,10 @@ builtin_sum(PyObject *self, PyObject *args)
1942
1942
}
1943
1943
1944
1944
PyDoc_STRVAR (sum_doc ,
1945
- "sum(sequence [, start]) -> value\n\
1945
+ "sum(iterable [, start]) -> value\n\
1946
1946
\n\
1947
- Returns the sum of a sequence of numbers (NOT strings) plus the value\n\
1948
- of parameter 'start' (which defaults to 0). When the sequence is\n\
1947
+ Returns the sum of an iterable of numbers (NOT strings) plus the value\n\
1948
+ of parameter 'start' (which defaults to 0). When the iterable is\n\
1949
1949
empty, returns start." );
1950
1950
1951
1951
0 commit comments