/* Former class object interface -- now only bound methods are here *//* Revealing some structures (not for general use) */#ifndef Py_LIMITED_API#ifndef Py_CLASSOBJECT_H#define Py_CLASSOBJECT_H#ifdef __cplusplusextern "C" {#endiftypedef struct {PyObject_HEADPyObject *im_func; /* The callable object implementing the method */PyObject *im_self; /* The instance it is bound to */PyObject *im_weakreflist; /* List of weak references */} PyMethodObject;PyAPI_DATA(PyTypeObject) PyMethod_Type;#define PyMethod_Check(op) ((op)->ob_type == &PyMethod_Type)PyAPI_FUNC(PyObject *) PyMethod_New(PyObject *, PyObject *);PyAPI_FUNC(PyObject *) PyMethod_Function(PyObject *);PyAPI_FUNC(PyObject *) PyMethod_Self(PyObject *);/* Macros for direct access to these values. Type checks are *not*done, so use with care. */#define PyMethod_GET_FUNCTION(meth) \(((PyMethodObject *)meth) -> im_func)#define PyMethod_GET_SELF(meth) \(((PyMethodObject *)meth) -> im_self)PyAPI_FUNC(int) PyMethod_ClearFreeList(void);typedef struct {PyObject_HEADPyObject *func;} PyInstanceMethodObject;PyAPI_DATA(PyTypeObject) PyInstanceMethod_Type;#define PyInstanceMethod_Check(op) ((op)->ob_type == &PyInstanceMethod_Type)PyAPI_FUNC(PyObject *) PyInstanceMethod_New(PyObject *);PyAPI_FUNC(PyObject *) PyInstanceMethod_Function(PyObject *);/* Macros for direct access to these values. Type checks are *not*done, so use with care. */#define PyInstanceMethod_GET_FUNCTION(meth) \(((PyInstanceMethodObject *)meth) -> func)#ifdef __cplusplus}#endif#endif /* !Py_CLASSOBJECT_H */#endif /* Py_LIMITED_API */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型