python中自定义结构体 pyobject 自定义结构体

1.PyMethodDef结构体源码(Include/methodobject.h):typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); struct PyMethodDef { const char *ml_name; /* The name of the built-in function/method */