[Pyrex] Re: __richcmp__ , __hash__: dependencies on subclassing ?

Uwe Hoffmann qual at tiscali.de
Sun Jan 29 17:01:14 CET 2006


Uwe Hoffmann schrieb:

>      def __richcmp__(self,other,case):
>          print "__richcmp__"
>          if case == 2:
>              return bool((<Base>left).a == (<Base>right).a)

oh man. read
		return bool((<Base>self).a == (<Base>other).a)




More information about the Pyrex mailing list