Class-level variables - a scoping issue

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Oct 15 19:50:32 EDT 2010


Lawrence D'Oliveiro wrote:

> “Dynamically” is when that “future” becomes the present, so you can see it 
> right in front of you, here, now.

But raising an "UnboundAttributeError" when attempting to
read a class attribute that *could*, but hasn't yet, been
shadowed by an instance attribute requires taking action
*before* the future becomes the present.

Unless I've misunderstood what you were suggesting the
behaviour should be.

-- 
Greg



More information about the Python-list mailing list