[Cython] PATH: special-case Py_ssize_t and size_t in the parser

Stefan Behnel stefan_ml at behnel.de
Fri Feb 20 20:22:52 CET 2009


Hi Lisandro,

I get a couple of these with your latest change when compiling Cython
itself. Could you try to come up with a fix?

Thanks,

Stefan


Compiling module Cython.Plex.Scanners ...

Compiling module Cython.Compiler.Scanning ...

Compiling module Cython.Compiler.Parsing ...


Error converting Pyrex file to C:
------------------------------------------------------------
...

    bint PyObject_TypeCheck(object o, PyTypeObject *type)
    # Return true if the object o is of type type or a subtype of
    # type. Both parameters must be non-NULL.

    Py_ssize_t PyObject_Length(object o)
   ^
------------------------------------------------------------

/home/sbehnel/source/Python/cython/cython-work/Cython/Includes/python_object.pxd:240:4:
Unrecognised type modifier combination

Error converting Pyrex file to C:
------------------------------------------------------------
...
    bint PyObject_TypeCheck(object o, PyTypeObject *type)
    # Return true if the object o is of type type or a subtype of
    # type. Both parameters must be non-NULL.

    Py_ssize_t PyObject_Length(object o)
    Py_ssize_t PyObject_Size(object o)
   ^
------------------------------------------------------------

/home/sbehnel/source/Python/cython/cython-work/Cython/Includes/python_object.pxd:241:4:
Unrecognised type modifier combination
Compilation failed




More information about the Cython-dev mailing list