Hi,

Dag Sverre Seljebotn wrote:
> When implementing inlineable functions, I saw that there's code in 
> PxdPostParse to enable this kind of code:
> 
> cdef int foo(int a, int b):
>      cdef int c
>      cdef int d
> 
> in a pxd file, in order to set "pxd_locals". As soon as some real code 
> is added the code is disallowed.
> 
> What is the purpose? It does conflict a bit with the inline syntax (not 
> for real but mentally). I have a feeling Robert added this as a feature 
> for something but what the feature is escapes me...

I think that's for overriding the code in .py files, so that you can use
plain Python code without type declarations, and just add a .pxd file next
to it for efficient C compilation.

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

Reply via email to