A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-March/034077.html below:

[Python-Dev] Re: Re: lists v. tuples

[Python-Dev] Re: Re: lists v. tuples [Python-Dev] Re: Re: lists v. tuplesTim Peters tim.one@comcast.net
Sat, 15 Mar 2003 23:36:28 -0500
[Guido]
> Yes.  And I'm still hoping to remove __cmp__; there should be only one
> way to overload comparisons.

As long as we're going to break everyone's code, list.sort(f) should also be
redefined then so that f returns a Boolean, f(a, b) meaning a is less than
b.  list.sort()'s implementation uses only less-than already, and it seems
that all newcomers to Python who didn't come by way of C or Perl (same thing
in this respect <wink>) expect sort's comparison function to work that way.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4