[docs] [issue22725] improve documentation for enumerate() (built-in function)
Raymond Hettinger
report at bugs.python.org
Tue Nov 4 06:22:06 CET 2014
Raymond Hettinger added the comment:
static PyObject *
> Why do you say that 'sequence' is a keyword?
It is a keyword argument to enumerate(). Here's the relevant section of code:
enum_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
enumobject *en;
PyObject *seq = NULL;
PyObject *start = NULL;
static char *kwlist[] = {"sequence", "start", 0};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O:enumerate", kwlist,
&seq, &start))
return NULL
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22725>
_______________________________________
More information about the docs
mailing list