return (*meth)(self, arg);
break;
case METH_VARARGS | METH_KEYWORDS:
+ case METH_OLDARGS | METH_KEYWORDS:
return (*(PyCFunctionWithKeywords)meth)(self, arg, kw);
case METH_NOARGS:
if (kw == NULL || PyDict_Size(kw) == 0) {
return (*meth)(self, arg);
}
break;
- case METH_OLDARGS | METH_KEYWORDS:
- return (*(PyCFunctionWithKeywords)meth)(self, arg, kw);
default:
- /* should never get here ??? */
PyErr_BadInternalCall();
return NULL;
}
PyMethodDef *ml;
int i, n;
PyObject *v;
-
+
n = 0;
for (c = chain; c != NULL; c = c->link) {
for (ml = c->methods; ml->ml_name != NULL; ml++)