J
janeaustine50
See the following...
def __cmp__(self,anX):
print "comparing from",id(self)
return cmp(self.v,anX.v)
False
I expected x1>x2 or x1<x2 were False and True respectively.
def __cmp__(self,anX):
print "comparing from",id(self)
return cmp(self.v,anX.v)
False
I expected x1>x2 or x1<x2 were False and True respectively.