On Nov 16, 8:28 pm, martyw <[EMAIL PROTECTED]> wrote: > > i would create a class to capture country information, e.g. <snip>
What is the advantage of this:
> def __cmp__(self, other):
> if self.name < other.name:
> return -1
> elif self.name > other.name:
> return 1
> else:
> return 0
>
over
def __cmp__(self,other):
return cmp(self.name,other.name)
?
--
Alan
--
http://mail.python.org/mailman/listinfo/python-list
