mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Rename enumerate() kw argument name to "iterable" and fix "sequence"->"iterable" in some docstrings.
This commit is contained in:
parent
1f2ba4b6da
commit
d11ae5d6ec
3 changed files with 9 additions and 9 deletions
|
@ -16,7 +16,7 @@ enum_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
enumobject *en;
|
||||
PyObject *seq = NULL;
|
||||
PyObject *start = NULL;
|
||||
static char *kwlist[] = {"sequence", "start", 0};
|
||||
static char *kwlist[] = {"iterable", "start", 0};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O:enumerate", kwlist,
|
||||
&seq, &start))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue