[Cython] Problem with declaring a map with an enum type.

2015-07-16 Thread Brian McAndrews
I have a C enum type that I'm attempting to put in a C++ map: Here's what I got: colors.h: enum Color { GREEN,BLUE,RED }; val.pyx: from libcpp.string cimport string from libcpp.map cimport map cdef extern from "colors.h": cpdef enum _Color "Color": GREEN,BLUE,RED cdef class T

[Cython] Fwd: [BUG] Cython failing performance when Numpy is not installed

2015-07-16 Thread Alex S.
Hello, being unable to acquire the Trac account (Robert Bradshaw's email is not listed on his site), I write here. The issue was described here: http://trac.cython.org/ticket/847 but was, however, misidentified. The wrapper for a function which receives "fused slice" (D[:]) arguments automatically