[Pyrex] cdef __new__ and too many arguments to function
Greg Ewing
greg at cosc.canterbury.ac.nz
Fri Sep 24 02:45:25 CEST 2004
> pyrexc (0.9.3 from Debian) takes the following pyrex code:
>
> cdef class BrokenThing:
> cdef __new__(self, float* drawable):
> pass
>
> and produces the code in the attachment. gcc doesn't like it
That Pyrex code is erroneous -- you can only declare
special methods with def, not cdef.
I should probably make the Pyrex compiler complain about
this.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list