Class-level variables - a scoping issue

L

Lawrence D'Oliveiro

But how can that be done without seeing into the future?

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

Gregory Ewing

Lawrence said:
“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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top