Use PyTypeObject* for the builtin type type.
Many C API calls, both from CPython and externally, expect PyTypeObject* for the type argument. A misdeclaration is a warning in C, but an error in C++. The C type of other builtins, such as lists, are not typically required in function signatures, so they are left as PyObject*.
Showing
Please register or sign in to comment