On Apr 29, 2009, at 2:49 PM, Ondrej Certik wrote:

>>>
>>> Not sure--have you tried without the locals decorator in the Python
>>> source? I hope this isn't a regression.
>>
>> Yes, as you can see, the locals is commented out. I'll try to bisect
>> it to see which commit broke it.
>
> Ok, so it never worked. I am a bit confused, because I thought the
> pure python mode worked fine for me before.
>
> In the current cython --- is there any way to keep a pure python code,
> and create an accompanying pxd file that would annotate the cdef
> functions and classes?

This should work, that's how I implemented this a long time ago. If  
it's not working now it's because something broke (or, I'm not  
promising that it's completely bug-free, but it should be good--we  
use it to bootstrap Cython itself).

> If not, how would you suggest this to be implemented? Ideally, the pxd
> file would be either autogenerated, or created from the decorators
> (maybe on the fly, or in the background). But as a first step, let's
> write it by hand.
> I was looking in the code - but I will need some time to dig into it
> so that I can implemented the above, so I can do that after my school
> finishes in couple weeks.
>
> This summer we will fix assumptions in sympy as part of GSoC, so I
> want to prepare the ground for using pure python mode for speeding up
> the core, so that we don't have to maintain two codebases.

Yep, that's one of the main objectives.

- Robert

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

Reply via email to