2018年4月28日

摘要: int PyType_Ready(PyTypeObject *type) { PyObject *dict, *bases; PyTypeObject *base; Py_ssize_t i, n; if (type->tp_flags & Py_TPFLAGS_READY) { assert(type->tp_dict != NULL); ... 阅读全文

posted @ 2018-04-28 14:17 王将军之武库 阅读(685) 评论(0) 推荐(0)

摘要: 在python opcod.h在 #define BUILD_CLASS 89 ceval.h创建类的伪指令: tp_new函数完成创建一个类的创建细节 再调用tp_ready 阅读全文

posted @ 2018-04-28 14:12 王将军之武库 阅读(1065) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3