[Cython] How to define C-consts in python module scope

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 19 01:34:01 CEST 2011


Chris Colbert wrote:

>     cdef public enum:
>        EV_READ  = 1
>        EV_WRITE = 2
> 
>     However, I do not like it, because I would like to use "public" for
>     other meaning (API generation).

My suggestion is

   cdef exposed enum:
     ...

-- 
Greg


More information about the cython-devel mailing list