summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-16 13:27:32 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-16 13:27:32 (GMT)
commitd11ae5d6ecda1d233af651a360c9f9140992f05d (patch)
treee7db859b829e3efe4583f72286dd57da4aec86fb /Python
parent1f2ba4b6dad80f97aeecb5be8f35f44ca792c983 (diff)
downloadcpython-d11ae5d6ecda1d233af651a360c9f9140992f05d.zip
cpython-d11ae5d6ecda1d233af651a360c9f9140992f05d.tar.gz
cpython-d11ae5d6ecda1d233af651a360c9f9140992f05d.tar.bz2
Rename enumerate() kw argument name to "iterable" and fix "sequence"->"iterable" in some docstrings.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index de3f0f4..23e87b3 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -369,9 +369,9 @@ filter_next(filterobject *lz)
}
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 @@ builtin_iter(PyObject *self, PyObject *args)
}
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 @@ builtin_sum(PyObject *self, PyObject *args)
}
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.");