[Pyrex] Cannot 'see' C methods in extension types

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Sep 30 02:41:05 CEST 2005


Nitin Madnani wrote:

>    def __eq__(self, State other):
>        return self.cost == other.cost and self.cover_vector ==  other.cover_vector

Extension types don't have separate __eq__, __ne__, etc.
Instead they have __richcmp__. See the "Special Methods
of Extension Types" page for more info.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Pyrex mailing list