On Aug 27, 2009, at 7:06 PM, Grant Baillie wrote:

> Hi, cython-dev
>
> I think I found a regression in Cython 0.11. Basically, I was  
> attempting to follow
>
> <http://codespeak.net/pipermail/cython-dev/2008-May/000962.html>
>
> to export values from a public enum to python. However, after  
> building the following .pyx with Cython 0.11.2:
>
> cdef public enum FOO:
>     BAR = 3
>
> I found that BAR isn't exported from the resulting extension  
> module. According to that thread, this worked back in 0.9.6.14.
>
> I've attached my attempt at a patch, as well as an extra test case  
> that reproduces the problem.

That did the trick Thanks! Pushed to cython-devel.

> (I admit I'm not exactly an expert on what ParseTreeTransforms.py  
> is doing :o).

That part of the transform is pruning the unneeded declaration code  
(to speed up walking over the tree), but as you pointed out we did  
need the public enums later on.

- Robert


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

Reply via email to