Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32417

Re: Nice solution wanted: Hide internal interfaces

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 <ian.g.kelly@gmail.com>
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 <k6mcjm$99m$1@news.albasani.net>
References <k6mb4k$5v3$1@news.albasani.net> <mailman.3030.1351529244.27098.python-list@python.org> <k6mcjm$99m$1@news.albasani.net>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Mon, 29 Oct 2012 13:09:57 -0600
Subject Re: Nice solution wanted: Hide internal interfaces
To Python <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3042.1351537835.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Oct 29, 2012 at 10:58 AM, Johannes Bauer <dfnsonfsduifb@gmx.de> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Nice solution wanted: Hide internal interfaces Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-10-29 17:33 +0100
  Re: Nice solution wanted: Hide internal interfaces andrea crotti <andrea.crotti.0@gmail.com> - 2012-10-29 16:41 +0000
  Re: Nice solution wanted: Hide internal interfaces Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-10-29 09:41 -0700
  Re: Nice solution wanted: Hide internal interfaces Chris Angelico <rosuav@gmail.com> - 2012-10-30 03:47 +1100
    Re: Nice solution wanted: Hide internal interfaces Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-10-29 17:58 +0100
      Re: Nice solution wanted: Hide internal interfaces Paul Rubin <no.email@nospam.invalid> - 2012-10-29 10:03 -0700
      Re: Nice solution wanted: Hide internal interfaces Grant Edwards <invalid@invalid.invalid> - 2012-10-29 18:00 +0000
      Re: Nice solution wanted: Hide internal interfaces Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-29 13:09 -0600
  Re: Nice solution wanted: Hide internal interfaces Grant Edwards <invalid@invalid.invalid> - 2012-10-29 16:52 +0000
    Re: Nice solution wanted: Hide internal interfaces Johannes Bauer <dfnsonfsduifb@gmx.de> - 2012-10-29 18:01 +0100
      Re: Nice solution wanted: Hide internal interfaces Peter Otten <__peter__@web.de> - 2012-10-29 18:17 +0100
  Re: Nice solution wanted: Hide internal interfaces Peter Otten <__peter__@web.de> - 2012-10-29 18:06 +0100
  Re: Nice solution wanted: Hide internal interfaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-29 22:37 +0000
  Re: Nice solution wanted: Hide internal interfaces alex23 <wuwei23@gmail.com> - 2012-10-29 18:37 -0700
    Re: Nice solution wanted: Hide internal interfaces andrea crotti <andrea.crotti.0@gmail.com> - 2012-10-30 14:15 +0000

csiph-web