Home
last modified time | relevance | path

Searched refs:PyFunctionObject (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Objects/
Dfuncobject.c13 PyFunctionObject *op; in PyFunction_NewWithQualName()
23 op = PyObject_GC_New(PyFunctionObject, &PyFunction_Type); in PyFunction_NewWithQualName()
83 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
93 return ((PyFunctionObject *) op) -> func_globals; in PyFunction_GetGlobals()
103 return ((PyFunctionObject *) op) -> func_module; in PyFunction_GetModule()
113 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
132 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
143 return ((PyFunctionObject *) op) -> func_kwdefaults; in PyFunction_GetKwDefaults()
163 Py_XSETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); in PyFunction_SetKwDefaults()
174 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure()
[all …]
Dcall.c364 name = ((PyFunctionObject *)func) -> func_name; in _PyFunction_FastCallDict()
365 qualname = ((PyFunctionObject *)func) -> func_qualname; in _PyFunction_FastCallDict()
422 name = ((PyFunctionObject *)func) -> func_name; in _PyFunction_FastCallKeywords()
423 qualname = ((PyFunctionObject *)func) -> func_qualname; in _PyFunction_FastCallKeywords()
/external/python/cpython2/Objects/
Dfuncobject.c12 PyFunctionObject *op = PyObject_GC_New(PyFunctionObject, in PyFunction_New()
70 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
80 return ((PyFunctionObject *) op) -> func_globals; in PyFunction_GetGlobals()
90 return ((PyFunctionObject *) op) -> func_module; in PyFunction_GetModule()
100 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
119 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
130 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure()
151 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure()
157 #define OFF(x) offsetof(PyFunctionObject, x)
185 func_get_dict(PyFunctionObject *op) in func_get_dict()
[all …]
/external/python/cpython3/Include/
Dfuncobject.h41 } PyFunctionObject; typedef
78 (((PyFunctionObject *)func) -> func_code)
80 (((PyFunctionObject *)func) -> func_globals)
82 (((PyFunctionObject *)func) -> func_module)
84 (((PyFunctionObject *)func) -> func_defaults)
86 (((PyFunctionObject *)func) -> func_kwdefaults)
88 (((PyFunctionObject *)func) -> func_closure)
90 (((PyFunctionObject *)func) -> func_annotations)
/external/python/cpython2/Include/
Dfuncobject.h38 } PyFunctionObject; typedef
56 (((PyFunctionObject *)func) -> func_code)
58 (((PyFunctionObject *)func) -> func_globals)
60 (((PyFunctionObject *)func) -> func_module)
62 (((PyFunctionObject *)func) -> func_defaults)
64 (((PyFunctionObject *)func) -> func_closure)
/external/python/cpython2/Doc/c-api/
Dfunction.rst13 .. c:type:: PyFunctionObject
/external/python/cpython3/Doc/c-api/
Dfunction.rst13 .. c:type:: PyFunctionObject
/external/python/cpython3/Python/
Dceval.c3206 PyFunctionObject *func = (PyFunctionObject *) in _PyEval_EvalFrameDefault()
4500 return PyUnicode_AsUTF8(((PyFunctionObject*)func)->func_name); in PyEval_GetFuncName()
/external/python/cpython2/Python/
Dceval.c4252 return PyString_AsString(((PyFunctionObject*)func)->func_name); in PyEval_GetFuncName()