[Cython] very simple iterator crashing Cython-0.11
Stefan Behnel
stefan_ml at behnel.de
Tue Apr 14 20:44:40 CEST 2009
Hi,
Robert Bradshaw wrote:
> On Apr 14, 2009, at 1:01 AM, Riccardo Murri wrote:
>
>> On Tue, Apr 14, 2009 at 1:17 AM, Lisandro Dalcin
>> <dalcinl at gmail.com> wrote:
>>> What happens if you write "cdef class ..." instead of "cpdef class
>>> ..." on your pxd?
>>>
>> Same error.
>
> I'm surprised that "cpdef class" works at all (it shouldn't). In any
> case, this is most certainly a bug, we are tracking it at http://
> trac.cython.org/cython_trac/ticket/279 .
The syntax of the cdef statement is waaay too forgiving. It even allows you
to write
cdef pass
for a "pass" statement. I'll try to fix it up.
Stefan
More information about the Cython-dev
mailing list