Hi all,
What is currently the correct way of defining an enum? I am trying to call
a NumPy function with an enum as its third argument, and the following does
not compile:
cimport numpy as np
np.import_array()
cdef enum NPY_SEARCHSIDE:
NPY_SEARCHLEFT = 0
NPY_SEARCHRIGHT = 1
cdef sort_so
Ok, great. Indeed, there is a bug in gcc 4.5, which is fixed I believe
in 4.6. For the OpenMP backend that's not such a big issue, as it's
likely not very useful anyway.
On 26 November 2011 18:35, Robert Bradshaw wrote:
> I'm all for allowing it at the Cython level even though we can't emit
> co