Nested class doesn't see class scope

Ian Kelly ian.g.kelly at gmail.com
Tue Jul 5 00:37:15 EDT 2016


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

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



More information about the Python-list mailing list