Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'skip:p 40': 0.04; 'python.': 0.05; 'library,': 0.05; 'terry': 0.07; 'python': 0.07; 'apps,': 0.09; 'casual': 0.09; 'not?': 0.09; 'subject:method': 0.09; 'pm,': 0.11; '>>>': 0.12; 'wrote:': 0.14; 'library': 0.15; 'reedy': 0.16; 'subject:sort': 0.16; 'terry,': 0.16; 'functions,': 0.19; 'object,': 0.19; 'discussion': 0.20; 'interface': 0.20; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'breaks': 0.23; 'happen.': 0.23; 'oriented': 0.23; 'objects': 0.24; 'chris': 0.27; 'object': 0.27; 'message-id:@mail.gmail.com': 0.28; 'effect': 0.29; 'sat,': 0.29; 'class': 0.29; 'functions.': 0.29; 'oop': 0.31; 'respects': 0.31; 'does': 0.31; 'it.': 0.31; 'speaking': 0.31; 'import': 0.32; 'to:addr:python-list': 0.32; 'things': 0.33; 'sometimes': 0.33; 'skip:" 10': 0.34; 'difference': 0.35; 'received:209.85': 0.37; 'apr': 0.38; 'depend': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'speak': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'design': 0.61; '2011': 0.62; 'link': 0.62; 'due': 0.67; 'heart': 0.71; 'analysis': 0.74; 'lengthy': 0.84; 'philosophy,': 0.84; 'received:209.85.210.174': 0.84; 'received:mail-iy0-f174.google.com': 0.84; 'subject:removal': 0.84; 'father': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=3KPPaOGew74rFrs+H2BY2Dfnqv9w4jfSZHlqrBt1LVM=; b=GiO0Gz4/jFoAbdP/QXLrAmiEr1rS/qsQYYrfNHzWubIkJGPBiEWkZZJBWxnPjuCqKr dFYc8oyO+bRF5vBbVI23FFMwFj4Ye/CJh4JU9HOA9ufVPon75U83DIj+xwNCgXHZ/61t CE5P17+iGCqwxldij0C3ZDR9j6+x1ADoXarDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jYBI9MvhqTWWww7p3GvrErR7iz6o1LFbZ70ljo4bal8EshdChSczWGGJcamsZdJQ4N 9tbW56Lo6JafpAcS8eBlzo7Wk+Sh6Lmf3w+CINEuzGsV541+56IKNerW8KS7BuM+tZFn o8tZkJVW856IP6JCaLeqZ6fsYswoWzqsHcl9E= MIME-Version: 1.0 In-Reply-To: References: <4d7cbfcb$0$29971$c3e8da3$5496439d@news.astraweb.com> <4d94326c$0$30003$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 2 Apr 2011 16:06:34 +1100 Subject: Re: Guido rethinking removal of cmp from sort method From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 40 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1301720798 news.xs4all.nl 41102 [::ffff:82.94.164.166]:42227 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2435 On Sat, Apr 2, 2011 at 3:54 PM, harrismh777 wrote= : > Terry Reedy wrote: >>> >>> When I speak of implementation vs interface I am speaking from a >>> strictly object oriented philosophy, as pedigree, from Grady Booch, who= m >>> I consider to be the father of Object Oriented Analysis and Design >>> (Booch, OO A&D with apps, 1994). > >> >> Python is object based but not object oriented in the Booch sense. >> >> . . . and Python is not OOA&D based. > > =A0 =A0With due respects Terry, these statements you have made are catego= rically > not true. Even a casual perusal of the Python supplied documentation and > helps (documented class interfaces) make it very clear that OOP and OOA&D > are at the very heart of the design of Python. Why this lengthy discussion on whether Python is object-oriented or not? What difference does it make? The "implementation vs interface" difference has nothing to do with that. If I write a library, and I export a number of public functions, then updating the library in a way that breaks programs is a bad thing. But bad things sometimes have to happen. And that's why things are versioned. Object oriented programming/design/analysis/architecture/whatever has no effect on that; if you link against a library, or call on an object, you need to be able to depend on it. The interface of "sort([1,2,3,4])" is no different from "[1,2,3,4].sort()" just because one is objects and the other is functions. Maybe we need a new directive: from __past__ import cmpsort Chris Angelico