Author rhettinger
Recipients docs@python, ethan.furman, ezio.melotti, georg.brandl, r.david.murray, rhettinger, terry.reedy, tshepang, vy0123
Date 2014-11-04.05:22:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415078526.14.0.264691745755.issue22725@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-11-04 05:22:06rhettingersetrecipients: + rhettinger, georg.brandl, terry.reedy, ezio.melotti, r.david.murray, docs@python, ethan.furman, tshepang, vy0123
2014-11-04 05:22:06rhettingersetmessageid: <1415078526.14.0.264691745755.issue22725@psf.upfronthosting.co.za>
2014-11-04 05:22:06rhettingerlinkissue22725 messages
2014-11-04 05:22:05rhettingercreate