summaryrefslogtreecommitdiffstats
path: root/Include/funcobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-07-18 14:21:06 (GMT)
committerGuido van Rossum <guido@python.org>1995-07-18 14:21:06 (GMT)
commit884afd654a79bcb836afcdb5c953a627fd45c4c7 (patch)
treeeb0d6c872c09cad854aa168829d9feda2a4df4ea /Include/funcobject.h
parente15dee5e3cf863657f47974cb51721ef3cca2ff8 (diff)
downloadcpython-884afd654a79bcb836afcdb5c953a627fd45c4c7.zip
cpython-884afd654a79bcb836afcdb5c953a627fd45c4c7.tar.gz
cpython-884afd654a79bcb836afcdb5c953a627fd45c4c7.tar.bz2
keyword arguments and faster function calls
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r--Include/funcobject.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h
index f618363..2ab4698 100644
--- a/Include/funcobject.h
+++ b/Include/funcobject.h
@@ -34,10 +34,9 @@ typedef struct {
PyObject_HEAD
PyObject *func_code;
PyObject *func_globals;
- PyObject *func_name;
- int func_argcount;
- PyObject *func_argdefs;
+ PyObject *func_defaults;
PyObject *func_doc;
+ PyObject *func_name;
} PyFunctionObject;
extern DL_IMPORT(PyTypeObject) PyFunction_Type;
@@ -47,8 +46,8 @@ extern DL_IMPORT(PyTypeObject) PyFunction_Type;
extern PyObject *PyFunction_New Py_PROTO((PyObject *, PyObject *));
extern PyObject *PyFunction_GetCode Py_PROTO((PyObject *));
extern PyObject *PyFunction_GetGlobals Py_PROTO((PyObject *));
-extern PyObject *PyFunction_GetArgStuff Py_PROTO((PyObject *, int *));
-extern int PyFunction_SetArgStuff Py_PROTO((PyObject *, int, PyObject *));
+extern PyObject *PyFunction_GetDefaults Py_PROTO((PyObject *));
+extern int PyFunction_SetDefaults Py_PROTO((PyObject *, PyObject *));
#ifdef __cplusplus
}