[Pyrex] Bad code generation in Pyrex 0.9.4.1

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Sep 29 00:53:50 UTC 2006


Konrad Hinsen wrote:
> I think I found a bug in Pyrex; it generates bad C code for one of my  
> modules.

Thanks, I'll look into this.

> 	cdef class vector:
> 	    def __div__(vector self, double factor):
                                ^^^^
BTW, you shouldn't assume that the first argument
to __div__ is self. See Special Methods of Extension
Types for details.

--
Greg



More information about the Pyrex mailing list