Class-level variables - a scoping issue

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Oct 11 02:43:47 EDT 2010


Lawrence D'Oliveiro wrote:

> It seems to me the same principle, that of disallowing implicit overriding 
> of a name from an outer scope with that from an inner one after the former 
> has already been referenced, should be applied here as well.

How would you intend to enforce such a restriction?

-- 
Greg



More information about the Python-list mailing list