Lisandro Dalcin wrote: > I believe you are right, it seems a bug, > > cdef class myTest > def __add__(myTest self, other): # note declaration: myTest self > return self.thisPtr.add(other)
It's not a bug. With extension types, the first argument of operator methods isn't necessarily self, so it's not automatically typed as such. See the section on Special Methods of Extension Types in the docs for a full explanation. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
