Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python3....
File: funcobject.h
[0] Fix | Delete
/* Function object interface */
[1] Fix | Delete
#ifndef Py_LIMITED_API
[2] Fix | Delete
#ifndef Py_FUNCOBJECT_H
[3] Fix | Delete
#define Py_FUNCOBJECT_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
/* Function objects and code objects should not be confused with each other:
[9] Fix | Delete
*
[10] Fix | Delete
* Function objects are created by the execution of the 'def' statement.
[11] Fix | Delete
* They reference a code object in their __code__ attribute, which is a
[12] Fix | Delete
* purely syntactic object, i.e. nothing more than a compiled version of some
[13] Fix | Delete
* source code lines. There is one code object per source code "fragment",
[14] Fix | Delete
* but each code object can be referenced by zero or many function objects
[15] Fix | Delete
* depending only on how many times the 'def' statement in the source was
[16] Fix | Delete
* executed so far.
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
typedef struct {
[20] Fix | Delete
PyObject_HEAD
[21] Fix | Delete
PyObject *func_code; /* A code object, the __code__ attribute */
[22] Fix | Delete
PyObject *func_globals; /* A dictionary (other mappings won't do) */
[23] Fix | Delete
PyObject *func_defaults; /* NULL or a tuple */
[24] Fix | Delete
PyObject *func_kwdefaults; /* NULL or a dict */
[25] Fix | Delete
PyObject *func_closure; /* NULL or a tuple of cell objects */
[26] Fix | Delete
PyObject *func_doc; /* The __doc__ attribute, can be anything */
[27] Fix | Delete
PyObject *func_name; /* The __name__ attribute, a string object */
[28] Fix | Delete
PyObject *func_dict; /* The __dict__ attribute, a dict or NULL */
[29] Fix | Delete
PyObject *func_weakreflist; /* List of weak references */
[30] Fix | Delete
PyObject *func_module; /* The __module__ attribute, can be anything */
[31] Fix | Delete
PyObject *func_annotations; /* Annotations, a dict or NULL */
[32] Fix | Delete
PyObject *func_qualname; /* The qualified name */
[33] Fix | Delete
[34] Fix | Delete
/* Invariant:
[35] Fix | Delete
* func_closure contains the bindings for func_code->co_freevars, so
[36] Fix | Delete
* PyTuple_Size(func_closure) == PyCode_GetNumFree(func_code)
[37] Fix | Delete
* (func_closure may be NULL if PyCode_GetNumFree(func_code) == 0).
[38] Fix | Delete
*/
[39] Fix | Delete
} PyFunctionObject;
[40] Fix | Delete
[41] Fix | Delete
PyAPI_DATA(PyTypeObject) PyFunction_Type;
[42] Fix | Delete
[43] Fix | Delete
#define PyFunction_Check(op) (Py_TYPE(op) == &PyFunction_Type)
[44] Fix | Delete
[45] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *);
[46] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_NewWithQualName(PyObject *, PyObject *, PyObject *);
[47] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetCode(PyObject *);
[48] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetGlobals(PyObject *);
[49] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetModule(PyObject *);
[50] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetDefaults(PyObject *);
[51] Fix | Delete
PyAPI_FUNC(int) PyFunction_SetDefaults(PyObject *, PyObject *);
[52] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetKwDefaults(PyObject *);
[53] Fix | Delete
PyAPI_FUNC(int) PyFunction_SetKwDefaults(PyObject *, PyObject *);
[54] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetClosure(PyObject *);
[55] Fix | Delete
PyAPI_FUNC(int) PyFunction_SetClosure(PyObject *, PyObject *);
[56] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetAnnotations(PyObject *);
[57] Fix | Delete
PyAPI_FUNC(int) PyFunction_SetAnnotations(PyObject *, PyObject *);
[58] Fix | Delete
[59] Fix | Delete
#ifndef Py_LIMITED_API
[60] Fix | Delete
PyAPI_FUNC(PyObject *) _PyFunction_FastCallDict(
[61] Fix | Delete
PyObject *func,
[62] Fix | Delete
PyObject **args,
[63] Fix | Delete
Py_ssize_t nargs,
[64] Fix | Delete
PyObject *kwargs);
[65] Fix | Delete
[66] Fix | Delete
PyAPI_FUNC(PyObject *) _PyFunction_FastCallKeywords(
[67] Fix | Delete
PyObject *func,
[68] Fix | Delete
PyObject **stack,
[69] Fix | Delete
Py_ssize_t nargs,
[70] Fix | Delete
PyObject *kwnames);
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
/* Macros for direct access to these values. Type checks are *not*
[74] Fix | Delete
done, so use with care. */
[75] Fix | Delete
#define PyFunction_GET_CODE(func) \
[76] Fix | Delete
(((PyFunctionObject *)func) -> func_code)
[77] Fix | Delete
#define PyFunction_GET_GLOBALS(func) \
[78] Fix | Delete
(((PyFunctionObject *)func) -> func_globals)
[79] Fix | Delete
#define PyFunction_GET_MODULE(func) \
[80] Fix | Delete
(((PyFunctionObject *)func) -> func_module)
[81] Fix | Delete
#define PyFunction_GET_DEFAULTS(func) \
[82] Fix | Delete
(((PyFunctionObject *)func) -> func_defaults)
[83] Fix | Delete
#define PyFunction_GET_KW_DEFAULTS(func) \
[84] Fix | Delete
(((PyFunctionObject *)func) -> func_kwdefaults)
[85] Fix | Delete
#define PyFunction_GET_CLOSURE(func) \
[86] Fix | Delete
(((PyFunctionObject *)func) -> func_closure)
[87] Fix | Delete
#define PyFunction_GET_ANNOTATIONS(func) \
[88] Fix | Delete
(((PyFunctionObject *)func) -> func_annotations)
[89] Fix | Delete
[90] Fix | Delete
/* The classmethod and staticmethod types lives here, too */
[91] Fix | Delete
PyAPI_DATA(PyTypeObject) PyClassMethod_Type;
[92] Fix | Delete
PyAPI_DATA(PyTypeObject) PyStaticMethod_Type;
[93] Fix | Delete
[94] Fix | Delete
PyAPI_FUNC(PyObject *) PyClassMethod_New(PyObject *);
[95] Fix | Delete
PyAPI_FUNC(PyObject *) PyStaticMethod_New(PyObject *);
[96] Fix | Delete
[97] Fix | Delete
#ifdef __cplusplus
[98] Fix | Delete
}
[99] Fix | Delete
#endif
[100] Fix | Delete
#endif /* !Py_FUNCOBJECT_H */
[101] Fix | Delete
#endif /* Py_LIMITED_API */
[102] Fix | Delete
[103] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function