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


Groups > comp.lang.python > #111097

Re: Nested class doesn't see class scope

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: Nested class doesn't see class scope
Date Mon, 4 Jul 2016 22:37:15 -0600
Lines 8
Message-ID <mailman.84.1467693483.2295.python-list@python.org> (permalink)
References <577b2768$0$1606$c3e8da3$5496439d@news.astraweb.com> <87y45gg387.fsf@jester.gateway.pace.com> <CALwzidk_K1RYhFmggS4BxiGt9-R3KeSTuDjR9gJg84VXL3Ouzw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 1Aq2QN+KMSaiiphevbYiSgDIq9MS1CNPzh+imHNk2v6g==
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.061
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:class': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'paul': 0.24; "doesn't": 0.26; 'point.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'var': 0.27; 'class': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; 'exist': 0.35; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'to:addr:python.org': 0.40; 'jul': 0.72; '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; bh=NWByfaf+5TBpzMLpYsxUlFThpG4rEAKtghm17uVagLY=; b=nsLd5xqLoiuzVpglYnE9CSRJ8VyvsJOnXUMK581txjA+MURwxh8jKca28QcF0xd6+o HBEorAztVvuFJjluGwkhmo08C0wGFI7Rzu4FvBx+srT+fz+F+psjOUfcX91vBEr+S0/8 CiL9QEVDF5/LWIa+WotSelgCkWRjxvzam8RYrS9S7sZKacZvXn/8msb/TVMfAFmQ5maN zw1DN8JmAOH2JjDoa3T7ZmGPBDyG9XVLUOKF2NPxRSw8LnTmMo9ZcTvPdODd3IRW17p1 DDiR/J3Z+jJDQnzmAP5R3bc3Cl7ZjhHGQFRnpMj7qrG78G60jKJOdGTdEb9aIS7ROsHt /ALg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NWByfaf+5TBpzMLpYsxUlFThpG4rEAKtghm17uVagLY=; b=WWVoLQ/mU5kBhBC0kMvIWuGp7ktG+zkz5XaRy6A6cYNcKmeef8r+Z/hV7OYXt7UMFi TRtnIUNieZw178grfasPpxDlMR9FDKzqGlm3W/Hc/cr6N9bH753EkEO3jQl83nshRCDF VHdEu/zaDkKxbO0MgjpGKzUQee4yTVWRGOxPpHe1YnHjm1MSSJYhsqeqkgBtzt0sOauF km5I2TKPBiMJTf46WnrWe7NJFu9jncfWAyHu6FzoqZkGUAvtrZQz6VuO+EuugDDq6tLc nB4EJ9xCG/zgDe9Xq+Uao0PnUeLFHQT3EashEM1zdLVyWFO+wVaQkrULQrpTLupdYqPE eLnQ==
X-Gm-Message-State ALyK8tK69jSNtbEHTeUnXso59ht5ggrmOtXR0OywXrj6VKref6lFM/fnY115gUeR0c/6fQSix4vQIFgIhcYmZw==
X-Received by 10.157.14.86 with SMTP id n22mr3937726otd.187.1467693474975; Mon, 04 Jul 2016 21:37:54 -0700 (PDT)
In-Reply-To <87y45gg387.fsf@jester.gateway.pace.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CALwzidk_K1RYhFmggS4BxiGt9-R3KeSTuDjR9gJg84VXL3Ouzw@mail.gmail.com>
X-Mailman-Original-References <577b2768$0$1606$c3e8da3$5496439d@news.astraweb.com> <87y45gg387.fsf@jester.gateway.pace.com>
Xref csiph.com comp.lang.python:111097

Show key headers only | View raw


On Mon, Jul 4, 2016 at 9:42 PM, Paul Rubin <no.email@nospam.invalid> wrote:
> Steven D'Aprano <steve@pearwood.info> writes:
>> ...     class B:
>> ...         x = var
>
> x = A.var

Nope. A doesn't exist yet at this point.

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


Thread

Nested class doesn't see class scope Steven D'Aprano <steve@pearwood.info> - 2016-07-05 13:20 +1000
  Re: Nested class doesn't see class scope Rustom Mody <rustompmody@gmail.com> - 2016-07-04 20:37 -0700
  Re: Nested class doesn't see class scope Paul Rubin <no.email@nospam.invalid> - 2016-07-04 20:42 -0700
    Re: Nested class doesn't see class scope Ian Kelly <ian.g.kelly@gmail.com> - 2016-07-04 22:37 -0600
  Re: Nested class doesn't see class scope Ian Kelly <ian.g.kelly@gmail.com> - 2016-07-04 22:41 -0600
    Re: Nested class doesn't see class scope Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-05 15:40 +1000
      Re: Nested class doesn't see class scope eryk sun <eryksun@gmail.com> - 2016-07-05 12:45 +0000
  Re: Nested class doesn't see class scope Ian Kelly <ian.g.kelly@gmail.com> - 2016-07-04 22:43 -0600

csiph-web