Mercurial > cpython-lru_cache-weakref
diff Include/methodobject.h @ 2863:10e007aef1cf legacy-trunk
changes for keyword args to built-in functions and classes
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 26 Jul 1995 17:58:29 +0000 |
| parents | fa98dda07877 |
| children | 65d2d8e67da3 |
line wrap: on
line diff
--- a/Include/methodobject.h Wed Jul 26 17:53:29 1995 +0000 +++ b/Include/methodobject.h Wed Jul 26 17:58:29 1995 +0000 @@ -35,10 +35,12 @@ #define PyCFunction_Check(op) ((op)->ob_type == &PyCFunction_Type) typedef PyObject *(*PyCFunction) Py_FPROTO((PyObject *, PyObject *)); +typedef PyObject *(*PyCFunctionWithKeywords) + Py_FPROTO((PyObject *, PyObject *, PyObject *)); extern PyCFunction PyCFunction_GetFunction Py_PROTO((PyObject *)); extern PyObject *PyCFunction_GetSelf Py_PROTO((PyObject *)); -extern int PyCFunction_IsVarArgs Py_PROTO((PyObject *)); +extern int PyCFunction_GetFlags Py_PROTO((PyObject *)); struct PyMethodDef { char *ml_name; @@ -56,6 +58,7 @@ /* Flag passed to newmethodobject */ #define METH_VARARGS 0x0001 +#define METH_KEYWORDS 0x0002 typedef struct PyMethodChain { PyMethodDef *methods; /* Methods of this type */
