Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'attribute': 0.05; 'classes.': 0.07; 'nested': 0.07; 'naturally': 0.09; 'access).': 0.16; 'ah,': 0.16; 'oct': 0.16; 'subject:interfaces': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'plain': 0.27; 'message-id:@mail.gmail.com': 0.27; 'classes': 0.30; 'could': 0.32; 'affects': 0.33; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; '(i.e.': 0.36; "didn't": 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'nothing': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'different': 0.63; 'special': 0.73; 'subject:Nice': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=hJO+bPaf1dRxTY71WW+ab6T7SjDlWpIxdeiZEXenZX8=; b=kO7LnuwyljkIAj1Pr7FMNNseyOwoOwtnmLFUcVxalkqKO+2TzO3WP3H/8yia2Revrh ui5mfC5q6gK4Nj5BPa90U29+SySINwfVYSNLG49hUZxfQ7MFj9b7ZIZGA4gGSXCJAG6n oGtRM/jVctaALzw9aPJhCxYIo8MfmcSYKUbXXVFTdZJ2IwMEdBeTZ1eixbpvBd7ZA81j V0qLQgf+FEA0rIxj5lWBNJ+zcwNpFXvpznHy/MVSciu5hL24ekVKuJLHjzwgASRL8Mif /VJmit2kSO7kOdube9ObwKzIb5GrkNM/W8lXLJKeEzIef+ok5stjRpmVCOzxydzID3hK zQhA== MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Mon, 29 Oct 2012 13:09:57 -0600 Subject: Re: Nice solution wanted: Hide internal interfaces To: Python 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351537835 news.xs4all.nl 6964 [2001:888:2000:d::a6]:57840 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32417 On Mon, Oct 29, 2012 at 10:58 AM, Johannes Bauer wrote: > Ah, that's nice. I didn't know that nested classes could access their > private members naturally (i.e. without using any magic, just with plain > old attribute access). There is nothing at all special about nested classes that is different from non-nested classes. All it affects is organization; instead of classes A and B, you have classes A and A.B.