On May 12, 2008, at 10:55 PM, Anatoly A. Kazantsev wrote:

On Mon, 12 May 2008 10:05:20 -0700
Robert Bradshaw <[EMAIL PROTECTED]> wrote:

Could you clarify? I did add something that lets you do

cdef public enum foo:
     a
     b
     c = 10
     ...

and theses will be exported into the public module dict.

For the testing purposes I created a new project with one test.pyx file which contains:

cdef public enum FOO:
    BAR = 3

Then build and install it with distutils.

In python shell run next commands:

import test
dir(test)

And got next output:

['__builtins__', '__doc__', '__file__', '__name__', '__pyx_capi__']

I have python 2.5.2 and cython 0.9.6.13.1

Cython 0.9.6.14. Sorry, very new feature.

- Robert

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to