Need help with Python scoping rules

Jan Kaliszewski zuo at chopin.edu.pl
Thu Aug 27 10:59:47 EDT 2009


14:17:15 Steven D'Aprano <steve at remove-this-cybersource.com.au> 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.

*j

-- 
Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>



More information about the Python-list mailing list