Carl Witty | 7 Oct 2007 05:38
Picon

incompatibility between Python and Cython (0.9.6.6)

I found an incompatibility between Python and Cython.  Cython compiles
"a < b" using PyObject_Cmp().  However, according to the Python/C API
Reference Manual (section 6.1), the true equivalent would be
PyObject_RichCompare(a, b, Py_LT).

This broke some of my code when I moved it from Python to Cython.

Carl Witty

Gmane