Message230578
| 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 |
|