[Cython] Correct way of defining enums

2011-11-28 Thread Stéfan van der Walt
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

Re: [Cython] nested prange

2011-11-28 Thread mark florisson
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