Lines Matching refs:PyFunctionObject
13 PyFunctionObject *op; in PyFunction_NewWithQualName()
33 op = PyObject_GC_New(PyFunctionObject, &PyFunction_Type); in PyFunction_NewWithQualName()
91 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
101 return ((PyFunctionObject *) op) -> func_globals; in PyFunction_GetGlobals()
111 return ((PyFunctionObject *) op) -> func_module; in PyFunction_GetModule()
121 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
140 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
151 return ((PyFunctionObject *) op) -> func_kwdefaults; in PyFunction_GetKwDefaults()
171 Py_XSETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); in PyFunction_SetKwDefaults()
182 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure()
203 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure()
214 return ((PyFunctionObject *) op) -> func_annotations; in PyFunction_GetAnnotations()
234 Py_XSETREF(((PyFunctionObject *)op)->func_annotations, annotations); in PyFunction_SetAnnotations()
240 #define OFF(x) offsetof(PyFunctionObject, x)
251 func_get_code(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_code()
262 func_set_code(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_code()
296 func_get_name(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_name()
303 func_set_name(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_name()
318 func_get_qualname(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_qualname()
325 func_set_qualname(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_qualname()
340 func_get_defaults(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_defaults()
353 func_set_defaults(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_defaults()
380 func_get_kwdefaults(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_kwdefaults()
394 func_set_kwdefaults(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_kwdefaults()
421 func_get_annotations(PyFunctionObject *op, void *Py_UNUSED(ignored)) in func_get_annotations()
433 func_set_annotations(PyFunctionObject *op, PyObject *value, void *Py_UNUSED(ignored)) in func_set_annotations()
503 PyFunctionObject *newfunc; in func_new_impl()
551 newfunc = (PyFunctionObject *)PyFunction_New((PyObject *)code, in func_new_impl()
573 func_clear(PyFunctionObject *op) in func_clear()
590 func_dealloc(PyFunctionObject *op) in func_dealloc()
601 func_repr(PyFunctionObject *op) in func_repr()
608 func_traverse(PyFunctionObject *f, visitproc visit, void *arg) in func_traverse()
638 sizeof(PyFunctionObject),
641 offsetof(PyFunctionObject, vectorcall), /* tp_vectorcall_offset */
662 offsetof(PyFunctionObject, func_weakreflist), /* tp_weaklistoffset */
672 offsetof(PyFunctionObject, func_dict), /* tp_dictoffset */