Add ctypedef for __builtin__.type.
This allows a "C" function like extern "C" PyObject* f(PyTypeObject *a); to be wrapped by Cython as from cpython.type import type cdef extern from *: object f(type a) In particular, this allows Cython to produce code which calls f as f((PyTypeObject*) a) which means that it will compile in C++.
Showing
Please register or sign in to comment