• Bradley M. Froehle's avatar
    Add ctypedef for __builtin__.type. · 12754a43
    Bradley M. Froehle authored
    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++.
    12754a43
ModuleNode.py 114 KB