[Cython] Correct way of defining enums

Stéfan van der Walt stefan at sun.ac.za
Wed Nov 30 02:00:47 CET 2011


Hi Licandro

On Tue, Nov 29, 2011 at 10:32 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> This is (near to, see below) the right way, as that NumPy enum do is
> declared in NumPy headers.
>
> Try "ctypedef enum ..."

Unfortunately, that doesn't work either :/  (Same error message, no
matter which incantation, Cython 0.15.1+)

Thanks for the feedback.
Stéfan


More information about the cython-devel mailing list