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

From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: Nested class doesn't see class scope
Date 2016-07-04 22:37 -0600
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>

Show all headers | 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