[Pyrex] anonymous enums - I need an idea

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 24 07:57:52 CET 2006


Helmut Jarausch wrote:
> in the library I'm wrapping there are lots of
> anonymous enums

> In my Pyrex code I have defined theses simply as ints

> Is there an elegant solution to making this values available in my
> Python code

Currently, no, sorry.

BTW, a neater way to declare anonymous enums in Pyrex is

   cdef extern from "whatever.h":
     enum:
       ESTCONDSURE
       ESTCONDUSUAL

--
Greg



More information about the Pyrex mailing list