summaryrefslogtreecommitdiff
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-07-26 17:58:29 +0000
committerGuido van Rossum <guido@python.org>1995-07-26 17:58:29 +0000
commitbebdc376c3aa584bfb9825758d5cf8d5c09c8692 (patch)
tree3d1b6a3fab65ed5907155bc2f557efd375c27e17 /Include/methodobject.h
parent454674d5dbbaf11364f947065cfbef98043c710d (diff)
downloadcpython-git-bebdc376c3aa584bfb9825758d5cf8d5c09c8692.tar.gz
changes for keyword args to built-in functions and classes
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r--Include/methodobject.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index cbe3270863..243b3be175 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -35,10 +35,12 @@ extern DL_IMPORT(PyTypeObject) PyCFunction_Type;
#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 @@ extern PyObject *PyCFunction_New
/* Flag passed to newmethodobject */
#define METH_VARARGS 0x0001
+#define METH_KEYWORDS 0x0002
typedef struct PyMethodChain {
PyMethodDef *methods; /* Methods of this type */