Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!news2.euro.net!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'wed,': 0.04; 'classes.': 0.05; 'received:209.85.213.46': 0.07; 'received:mail- yw0-f46.google.com': 0.07; 'to:name:python list': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'nesting': 0.16; 'subject:classes': 0.16; 'modules': 0.20; 'header:In-Reply-To:1': 0.22; 'received:209.85.213': 0.23; "didn't": 0.25; 'subject:problem': 0.25; 'classes': 0.26; 'message-id:@mail.gmail.com': 0.28; 'problem': 0.29; 'opposed': 0.29; 'probably': 0.30; 'nested': 0.31; 'solved': 0.31; 'to:addr:python-list': 0.32; 'idea': 0.32; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'how': 0.39; "it's": 0.40; 'header:Received:5': 0.40; '13,': 0.60; '2011': 0.62; 'here': 0.65 MIME-Version: 1.0 In-Reply-To: <4DA568FE.2020300@hastings.org> References: <4DA568FE.2020300@hastings.org> From: James Mills Date: Wed, 13 Apr 2011 19:31:13 +1000 Subject: Re: Nested inner classes and inheritance -> namespace problem To: python list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 82.94.164.166 X-Trace: 1302687095 news.xs4all.nl 81476 [::ffff:82.94.164.166]:41461 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3118 On Wed, Apr 13, 2011 at 7:12 PM, Larry Hastings wrote: > Yes, I could make the problem go away if I didn't have nested inner class= es > like this.=C2=A0 But I like this structure.=C2=A0 Any idea how I can make= it work > while preserving the nesting and inheritance? It's probably better to make use of modules here as opposed to nesting classes. cheers James --=20 -- James Mills -- -- "Problems are solved by method"