Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dfuncobject.c59 PyFunctionObject *op = PyObject_GC_New(PyFunctionObject, &PyFunction_Type); in PyFunction_NewWithQualName()
108 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
118 return ((PyFunctionObject *) op) -> func_globals; in PyFunction_GetGlobals()
128 return ((PyFunctionObject *) op) -> func_module; in PyFunction_GetModule()
138 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
157 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
168 return ((PyFunctionObject *) op) -> func_kwdefaults; in PyFunction_GetKwDefaults()
188 Py_XSETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); in PyFunction_SetKwDefaults()
199 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure()
220 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure()
[all …]
/third_party/python/Include/
Dfuncobject.h51 } PyFunctionObject; typedef
82 (((PyFunctionObject *)func) -> func_code)
84 (((PyFunctionObject *)func) -> func_globals)
86 (((PyFunctionObject *)func) -> func_module)
88 (((PyFunctionObject *)func) -> func_defaults)
90 (((PyFunctionObject *)func) -> func_kwdefaults)
92 (((PyFunctionObject *)func) -> func_closure)
94 (((PyFunctionObject *)func) -> func_annotations)
97 ((PyFrameConstructor *)&((PyFunctionObject *)(func))->func_globals)
/third_party/python/Doc/c-api/
Dfunction.rst13 .. c:type:: PyFunctionObject
/third_party/python/Misc/NEWS.d/
D3.10.0a2.rst80 Fix handling of errors during creation of ``PyFunctionObject``, which
/third_party/python/Python/
Dceval.c4293 PyFunctionObject *func = (PyFunctionObject *) in _PyEval_EvalFrameDefault()
5761 return PyUnicode_AsUTF8(((PyFunctionObject*)func)->func_name); in PyEval_GetFuncName()