Need help with Python scoping rules

Jan Kaliszewski zuo at
Thu Aug 27 16:59:47 CEST 2009

14:17:15 Steven D'Aprano <steve at> wrote:

> The class is a scope, and inside the class scope, you can access local
> names. What you can't do is access the class scope from inside nested
> functions.

s/from inside nested functions/from inside nested scopes

Besides that detail, I fully agree.


Jan Kaliszewski (zuo) <zuo at>

More information about the Python-list mailing list