Lines Matching refs:PyFunctionObject
59 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()
225 func_get_annotation_dict(PyFunctionObject *op) in func_get_annotation_dict()
262 return func_get_annotation_dict((PyFunctionObject *)op); in PyFunction_GetAnnotations()
282 Py_XSETREF(((PyFunctionObject *)op)->func_annotations, annotations); in PyFunction_SetAnnotations()
288 #define OFF(x) offsetof(PyFunctionObject, x)
300 func_get_code(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_code()
311 func_set_code(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_code()
345 func_get_name(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_name()
352 func_set_name(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_name()
367 func_get_qualname(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_qualname()
374 func_set_qualname(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_qualname()
389 func_get_defaults(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_defaults()
402 func_set_defaults(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_defaults()
429 func_get_kwdefaults(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_kwdefaults()
443 func_set_kwdefaults(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_kwdefaults()
470 func_get_annotations(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_annotations()
481 func_set_annotations(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_annotations()
551 PyFunctionObject *newfunc; in func_new_impl()
599 newfunc = (PyFunctionObject *)PyFunction_New((PyObject *)code, in func_new_impl()
621 func_clear(PyFunctionObject *op) in func_clear()
639 func_dealloc(PyFunctionObject *op) in func_dealloc()
650 func_repr(PyFunctionObject *op) in func_repr()
657 func_traverse(PyFunctionObject *f, visitproc visit, void *arg) in func_traverse()
688 sizeof(PyFunctionObject),
691 offsetof(PyFunctionObject, vectorcall), /* tp_vectorcall_offset */
712 offsetof(PyFunctionObject, func_weakreflist), /* tp_weaklistoffset */
722 offsetof(PyFunctionObject, func_dict), /* tp_dictoffset */