[issue20226] Argument Clinic: support for simple expressions?
Georg Brandl
report at bugs.python.org
Sun Jan 12 11:29:49 CET 2014
New submission from Georg Brandl:
Take for example select.epoll.__new__():
static PyObject *
pyepoll_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
int flags = 0, sizehint = FD_SETSIZE - 1;
static char *kwlist[] = {"sizehint", "flags", NULL};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ii:epoll", kwlist,
&sizehint, &flags))
return NULL;
How should that be handled? Currently I can't specify ``FD_SETSIZE - 1`` as the default value, but I don't want a magic ``-909`` either :)
----------
messages: 207946
nosy: georg.brandl
priority: normal
severity: normal
status: open
title: Argument Clinic: support for simple expressions?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20226>
_______________________________________
More information about the Python-bugs-list
mailing list