[Cython] Recursive structure, typedef

David Cournapeau cournape at gmail.com
Wed Dec 3 07:57:50 CET 2008


On Tue, Dec 2, 2008 at 2:07 PM, Robert Bradshaw
<robertwb at math.washington.edu> wrote:

>> Not sure about Cython, but the following works in Pyrex:
>>
>>    cdef struct foo
>>
>>    ctypedef foo foo_t
>>
>>    cdef struct foo:
>>      foo_t *f
>
> Yes, this works in Cython too.

Ok, thanks, that should solve my problem.

David


More information about the Cython-dev mailing list