Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'retrieved': 0.05; 'subject:Python': 0.06; 'attribute': 0.07; 'elegant': 0.07; 'if,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mundane': 0.16; "object's": 0.16; 'sad': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'things.': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'class': 0.32; 'subject: (': 0.35; 'classes': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'pm,': 0.38; 'simply': 0.61; 'more': 0.64; 'different': 0.65; 'subject:! ': 0.74; '2015': 0.84; 'dict.': 0.84; 'entity.': 0.84; 'subject:!)': 0.84; 'to:none': 0.92 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:cc :content-type; bh=fZ3+kkXim8plCJlFj35FXHKlYmFuHhZM1T3te7XlBcQ=; b=PLtMQQOaQ4NdKLmZgrPGg2j/v1IVBpe+Fd90YyTf3DEchlSu9AES41gXuWFd8KN42P iCdmaEM16vaxY4vn8FoPhyQ/heUTpXbnyE9mT/usFW8UNd00uYoJQLf1QOMxDrCgpcaq jWOtUleaKVvqEo2fhr4QLX+Xp7SZYOg2snwlVxwBJzHSxI5UU3LyjlW3NGj/SymlkbKU 6vB8hfdul7hAY4WhwULAHfyP8BBMAdA3OwjLpXloIbZC8zq/MtMo7/YEaUW+8QLxMOGb msFJBRLo9Br7iB8em3huRsPNqyZ7qriJqn296HBbZG+c+eUSxKkQ6RPQVxntXm4Z/uFj ZeVQ== MIME-Version: 1.0 X-Received: by 10.50.62.110 with SMTP id x14mr17023608igr.2.1422960572371; Tue, 03 Feb 2015 02:49:32 -0800 (PST) In-Reply-To: <87zj8vgtzk.fsf@elektro.pacujo.net> References: <54c07d04$0$13012$c3e8da3$5496439d@news.astraweb.com> <54ca583e$0$13005$c3e8da3$5496439d@news.astraweb.com> <54ccc2fc$0$13009$c3e8da3$5496439d@news.astraweb.com> <54cd9a7a$0$12984$c3e8da3$5496439d@news.astraweb.com> <54ce526a$0$13012$c3e8da3$5496439d@news.astraweb.com> <54cf242d$0$12991$c3e8da3$5496439d@news.astraweb.com> <54cf6836$0$12996$c3e8da3$5496439d@news.astraweb.com> <54cf849d$0$13005$c3e8da3$5496439d@news.astraweb.com> <87zj8vgtzk.fsf@elektro.pacujo.net> Date: Tue, 3 Feb 2015 21:49:32 +1100 Subject: Re: dunder-docs (was Python is DOOMED! Again!) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422960580 news.xs4all.nl 2881 [2001:888:2000:d::a6]:55913 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85131 On Tue, Feb 3, 2015 at 9:38 PM, Marko Rauhamaa wrote: > It's slightly sad that Python exposes the two-level attribute lookup. It > would be more elegant if, conceptually, all methods were retrieved from > the object's attribute dict. That way, the class would be simply a > mundane optimization trick instead of a metaphysical entity. > That's the ECMAScript model of classes - prototype-based. It's not Python's. There are many different ways to do things. ChrisA