nothing, Alan wrote: > 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 yours is better! -- http://mail.python.org/mailman/listinfo/python-list
- Sorting Countries by Region patrick . waldo
- Fwd: Sorting Countries by Region Sergio Correia
- Re: Sorting Countries by Region martyw
- Re: Sorting Countries by Region Alan
- Re: Sorting Countries by Region martyw
- Re: Fwd: Sorting Countries by Region patrick . waldo
- Re: Fwd: Sorting Countries by Region Sergio Correia
- Re: Fwd: Sorting Countries by Region patrick . waldo
- Re: Fwd: Sorting Countries by Region Gabriel Genellina
- Re: Fwd: Sorting Countries by Region J. Clifford Dyer