Back to index

python3.2  3.2.2
Classes | Defines | Functions
funcobject.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  PyFunctionObject


#define PyFunction_Check(op)   (Py_TYPE(op) == &PyFunction_Type)
#define PyFunction_GET_CODE(func)   (((PyFunctionObject *)func) -> func_code)
#define PyFunction_GET_GLOBALS(func)   (((PyFunctionObject *)func) -> func_globals)
#define PyFunction_GET_MODULE(func)   (((PyFunctionObject *)func) -> func_module)
#define PyFunction_GET_DEFAULTS(func)   (((PyFunctionObject *)func) -> func_defaults)
#define PyFunction_GET_KW_DEFAULTS(func)   (((PyFunctionObject *)func) -> func_kwdefaults)
#define PyFunction_GET_CLOSURE(func)   (((PyFunctionObject *)func) -> func_closure)
#define PyFunction_GET_ANNOTATIONS(func)   (((PyFunctionObject *)func) -> func_annotations)


 PyAPI_DATA (PyTypeObject) PyFunction_Type
 PyAPI_FUNC (PyObject *) PyFunction_New(PyObject *
 PyAPI_FUNC (int) PyFunction_SetDefaults(PyObject *

Class Documentation

struct PyFunctionObject

Definition at line 21 of file funcobject.h.

Collaboration diagram for PyFunctionObject:
Class Members
PyObject * func_annotations
PyObject * func_closure
PyObject_HEAD PyObject * func_code
PyObject * func_defaults
PyObject * func_dict
PyObject * func_doc
PyObject * func_globals
PyObject * func_kwdefaults
PyObject * func_module
PyObject * func_name
PyObject * func_weakreflist

Define Documentation

#define PyFunction_Check (   op)    (Py_TYPE(op) == &PyFunction_Type)

Definition at line 44 of file funcobject.h.

#define PyFunction_GET_ANNOTATIONS (   func)    (((PyFunctionObject *)func) -> func_annotations)

Definition at line 73 of file funcobject.h.

#define PyFunction_GET_CLOSURE (   func)    (((PyFunctionObject *)func) -> func_closure)

Definition at line 71 of file funcobject.h.

#define PyFunction_GET_CODE (   func)    (((PyFunctionObject *)func) -> func_code)

Definition at line 61 of file funcobject.h.

#define PyFunction_GET_DEFAULTS (   func)    (((PyFunctionObject *)func) -> func_defaults)

Definition at line 67 of file funcobject.h.

#define PyFunction_GET_GLOBALS (   func)    (((PyFunctionObject *)func) -> func_globals)

Definition at line 63 of file funcobject.h.

#define PyFunction_GET_KW_DEFAULTS (   func)    (((PyFunctionObject *)func) -> func_kwdefaults)

Definition at line 69 of file funcobject.h.

#define PyFunction_GET_MODULE (   func)    (((PyFunctionObject *)func) -> func_module)

Definition at line 65 of file funcobject.h.

Function Documentation

PyAPI_FUNC ( PyObject ) [read]

Definition at line 2431 of file pythonrun.c.

    return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
PyAPI_FUNC ( int  )

Definition at line 2410 of file pythonrun.c.