Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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; 'python.': 0.02; 'say,': 0.05; 'attribute': 0.07; 'compiler': 0.07; 'referring': 0.07; 'attributes': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'python': 0.11; '"python': 0.16; 'roy': 0.16; 'underlying': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'nearly': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'correct': 0.29; 'tim': 0.29; "doesn't": 0.30; 'implemented': 0.33; 'skip:_ 10': 0.34; 'except': 0.35; 'there': 0.35; 'accessible': 0.36; 'c++': 0.36; "he's": 0.36; 'view,': 0.36; 'subject:?': 0.36; 'generic': 0.38; 'writes': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'most': 0.60; 'received:173': 0.61; 'name': 0.63; 'between': 0.67; 'received:69.56': 0.68; 'smith': 0.68; 'received:gateway15.websitewelcome.com': 0.84; 'absolutely': 0.87; 'subject:skip:E 10': 0.95 Date: Sun, 01 Sep 2013 17:24:34 -0700 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Encapsulation unpythonic? References: <8255dfbd-a2a1-4ab7-b900-ee19faa459f2@googlegroups.com> <8c7c4854-70e1-46e7-a3ff-a3206c4c5c27@googlegroups.com> <5221567b$0$6599$c3e8da3$5496439d@news.astraweb.com> <5221d7ab$0$6599$c3e8da3$5496439d@news.astraweb.com> <5222f675$0$6599$c3e8da3$5496439d@news.astraweb.com> <9c11126f-93e8-461c-b487-bafc6b146269@googlegroups.com> <5223A495.5070103@stoneleaf.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3304.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:54692 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20= 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378083075 news.xs4all.nl 15863 [2001:888:2000:d::a6]:51177 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53445 On 09/01/2013 02:54 PM, Tim Delaney wrote: > Roy Smith wrote: >> >> Nothing is accessible in Python except via getters and setters. The >> only difference between Python and, say, C++ in this regard is that the >> Python compiler writes them for you most of the time and doesn't make >> you put ()'s at the end of the name > > I think Roy is referring to the fact that attribute access is implemented via __getattr__ / __getattribute__ / > __setattr__ / __delattr__. From one point of view, he's absolutely correct - nearly all attributes are accessed via > getters/setters in Python. Seems to me there is a difference between an underlying generic protocol for data manipulation and "Python writing them [getters/setters] for you". -- ~Ethan~