Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'purpose.': 0.07; 'received:internal': 0.09; 'example).': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'pathological': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subclass': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'variable': 0.18; 'bit': 0.19; 'examples': 0.20; 'aug': 0.22; 'mon,': 0.24; 'changes,': 0.26; 'header:In-Reply-To:1': 0.27; '(maybe': 0.31; "d'aprano": 0.31; 'piece': 0.31; 'steven': 0.31; 'received:66': 0.35; 'something': 0.35; 'interface,': 0.36; 'useful': 0.36; 'subject:?': 0.36; 'should': 0.36; 'example,': 0.37; 'received:10': 0.37; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'information': 0.63; 'name': 0.63; 'notified': 0.63; 'wish': 0.70; 'toy': 0.84; '2013,': 0.91; 'subject:skip:E 10': 0.95 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= EO+qeMGUd/jaxu3dFGO+66klSWM=; b=EXQHb+UIZprZ5PqztT51nGpHYNcpbODm rZaVUFHJsyFmPRAY2lVuxhnhd1CWXVXUGnGM3zyIZIN5YtrGQ/2+gAhpwDc41X6L 7iT6XjY2VM3eu4pDRirzQFLa4bpf5sCMd18JNqUSQZfgm1idvbF5/vSAvnlTNSC2 0t+0ghg1nOs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=EO+qeMGUd/jaxu3dFGO+66klSWM=; b=dfk 07VYrHrqdlYI/4wtzoftFC7rKR224UXDqhn+Vm/80D2gq1q8vRYW+A9Pag2WwPZH DXaOxczYEFr9bkpNqMBEex3zG/fXQgwLjAb14vveBNK/z8N6tXR9t+sTJsGRMDXq CbVUB+BYNPpdpevqcBRfrxzu3CwhDHi6D6H7g6QU= X-Sasl-Enc: 10ORuMMRMA1Yy69ydMujNDwNCPRLKTMO940PUU/Ic2nU 1377103926 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-d009844e In-Reply-To: <5211c3cc$0$29885$c3e8da3$5496439d@news.astraweb.com> References: <8255dfbd-a2a1-4ab7-b900-ee19faa459f2@googlegroups.com> <520fa223$0$30000$c3e8da3$5496439d@news.astraweb.com> <5211c3cc$0$29885$c3e8da3$5496439d@news.astraweb.com> Subject: Re: Encapsulation unpythonic? Date: Wed, 21 Aug 2013 12:52:06 -0400 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377103928 news.xs4all.nl 15963 [2001:888:2000:d::a6]:36705 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52774 On Mon, Aug 19, 2013, at 3:05, Steven D'Aprano wrote: > In this toy example, both parties are at fault: the author of Parrot for > unnecessary data-hiding of something which is so obviously a useful piece > of information and should be part of the public interface, It may wish to be notified when its name changes, and so have a name property. The subclass may want to use a variable called _name for some other purpose. (maybe "name" isn't the best example). Examples often look pathological when you simplify out the bit that makes them make sense. -- Random832