Paul Rubin wrote: > Dan Stromberg <[EMAIL PROTECTED]> writes: >> def __cmp__(self, other): >> if self.a < other.a: >> return -1 >> elif self.a > other.a: >> return 1 >> else: >> return 0 > > I think I'd have written > > return cmp(self.a, other.a)
/me agrees -- http://mail.python.org/mailman/listinfo/python-list