Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(at': 0.03; '3.2': 0.07; 'ascii': 0.07; 'disagree': 0.07; 'terry': 0.07; 'python': 0.07; 'least)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:method': 0.09; 'am,': 0.14; 'wrote:': 0.14; '*must*': 0.16; '3.3.': 0.16; 'benefit.': 0.16; 'cmp': 0.16; 'ironed': 0.16; 'ratio': 0.16; 'reedy': 0.16; 'subject:sort': 0.16; 'possibly': 0.16; 'seems': 0.21; 'jan': 0.22; 'header:In-Reply-To:1': 0.22; 'worst': 0.23; 'changes': 0.29; 'certainly': 0.29; 'unicode': 0.29; 'least': 0.30; 'this.': 0.30; 'strings.': 0.31; 'switch': 0.31; 'paul': 0.32; 'to:addr:python-list': 0.32; "isn't": 0.34; 'header:X-Complaints-To:1': 0.34; 'change': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'quite': 0.36; 'some': 0.37; 'should': 0.37; 'removing': 0.38; 'thread': 0.38; 'but': 0.38; 'pretty': 0.38; 'reasonable': 0.38; 'received:org': 0.38; 'set': 0.39; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'removal': 0.60; 'subject': 0.61; 'below': 0.63; 'disruptive': 0.84; 'respect,': 0.84; 'subject:removal': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Guido rethinking removal of cmp from sort method Date: Fri, 01 Apr 2011 12:59:05 -0400 References: <4d7cbfcb$0$29971$c3e8da3$5496439d@news.astraweb.com> <4d94326c$0$30003$c3e8da3$5496439d@news.astraweb.com> <7x8vvue7or.fsf@ruckus.brouhaha.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 In-Reply-To: <7x8vvue7or.fsf@ruckus.brouhaha.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1301677164 news.xs4all.nl 41117 [::ffff:82.94.164.166]:59924 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2372 On 4/1/2011 3:45 AM, Paul Rubin wrote: > Removing cmp certainly isn't the most disruptive change of Python 3, That was almost certainly the ascii to unicode switch for strings. It is still not quite complete in 3.2 but should be pretty well ironed out in 3.3. > but it seems like the one with the least benefit. Since the set of changes was finite, there *must* be (at least) one with the lowest benefit/cost ratio. The removal of list.sort(cmp) may well be that one. Certainly, reasonable people can disagree as to whether the ratio is above or below 1.0. If cmp had not been removed, some other change would have been the worst in this respect, and possibly the subject of a thread like this. -- Terry Jan Reedy