Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed2.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.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'definitions': 0.07; 'arguments': 0.09; 'derived': 0.09; 'violates': 0.09; 'python': 0.11; 'creates': 0.14; 'dynamic,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integers,': 0.16; 'janssen': 0.16; 'other,': 0.16; 'ought': 0.16; 'programmers,': 0.16; 'simpler,': 0.16; 'subclass': 0.16; 'subject:object': 0.16; 'substitution': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'trying': 0.19; 'machine': 0.22; "aren't": 0.24; 'documented': 0.24; 'laws': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'point': 0.28; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'work.': 0.31; 'that.': 0.31; 'types.': 0.31; 'class': 0.32; 'programmers': 0.33; 'subject:the': 0.34; 'knowledge': 0.35; 'basic': 0.35; 'etc.)': 0.35; 'no,': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'building': 0.35; 'there': 0.35; 'list': 0.37; 'list.': 0.37; 'starting': 0.37; 'being': 0.38; 'ends': 0.38; 'to:addr :python-list': 0.38; 'little': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'consists': 0.60; 'new': 0.61; 'no.': 0.61; 'information,': 0.61; 'simple': 0.61; "you're": 0.61; 'making': 0.63; 'more': 0.64; 'different': 0.65; 'talking': 0.65; '26,': 0.68; 'fulfill': 0.68; 'internet': 0.71; "everything's": 0.84; 'points,': 0.84; 'principles.': 0.84; '9:00': 0.91; 'contracts': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rAq/KPk56MeKx8UCDqoQw3HQkkeeSqd8EsjQUbvUnho=; b=Dv+x5xiGgr2BC3TJekKlA+T50gxlvZm6C0TUgJC8lW+VrcjE+4qJw57tPCCNwuCS2v zijJjeExVPduTY7U9Iqc341Z2HUxcrpaxb3pdkZegsHVQOuxjAD6goBSrlY+jFFUZ/sU 2r1/LiMBvjNeZFhJetbQCk7U1zMtjoo8NhmuoEnibqQf73dEyKwjRa/h/eKcHNyTrd2q 4blS2OUbTVN6GRXv3q9uy9/tkkEa/ael9gjqff1o3BqxwLbj7kIU7N6d7zi2xs5zSNdV 1tJULlT8k+yrttCw5KFh17dWwGFV079ViGFDNdADkj2Z6GpnX/I5idgBw4nWuk0PktwD hFzQ== MIME-Version: 1.0 X-Received: by 10.59.9.69 with SMTP id dq5mr642593ved.87.1372201718216; Tue, 25 Jun 2013 16:08:38 -0700 (PDT) In-Reply-To: References: <15ba0011-bbf1-42f7-b3ea-1c1d4b70e56b@googlegroups.com> <51c66962$0$29999$c3e8da3$5496439d@news.astraweb.com> <20130623133546.GA2308@capricorn> <51c723b4$0$29999$c3e8da3$5496439d@news.astraweb.com> <51C74D6E.6030200@rece.vub.ac.be> Date: Wed, 26 Jun 2013 09:08:38 +1000 Subject: Re: What is the semantics meaning of 'object'? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372201726 news.xs4all.nl 15902 [2001:888:2000:d::a6]:39438 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49208 On Wed, Jun 26, 2013 at 9:00 AM, Mark Janssen wrote: >> 1) That breaks the Liskov Substitution Principle. A subclass of list >> ought to fulfill the contracts of a basic list. > > We don't need LSP. I write about this on the WIkiWikiWeb where there > were many arguments documented and many hairs frazzled. LSP was > derived from AlanKay's abstract idea of "Everything is an object". > But no -- there is a *physics* for information, and it ends at the > machine types. Then you're talking about composition, not inheritance. We already have that - just declare a new type that consists only of other, simpler, types. That's the way class definitions work. (Okay, in Python it's a little different because everything's dynamic, but still there's a general concept that you're building the complex from the simple - a Point from a number of integers, a Shape2D from a number of points, etc.) >> This kinda violates the laws of >> information. Programmers, being creative entities, will be adding to >> the pool of knowledge. Trying to shoehorn everything into one object >> won't work. > > No, we don't need programmers adding to the "pool of knowledge" -- the > internet does that. We need programmers making data objects that can > present data in new and more interesting ways -- starting from basic > principles. The internet creates knowledge all on its own? Wow. The Singularity has been reached! No. Programmers add to code. That's what we get paid for. All those commits going onto source control aren't the creation of the internet. ChrisA