mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
keyword arguments and faster function calls
This commit is contained in:
parent
e15dee5e3c
commit
884afd654a
9 changed files with 38 additions and 32 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue