Class Variable Access and Assignment
Antoon Pardon
apardon at forel.vub.ac.be
Fri Nov 4 06:12:07 EST 2005
Op 2005-11-04, Graham schreef <graham.abbott at gmail.com>:
> Once again, many thanks, your explainations are very detailed and i
> think i'm in full understanding of the what/when/why of it all.
>
> And with further introspection i can see why its done this way from a
> language processing point of view rather than programming one. I also
> now realize that <instance>.<classvarname> is there so that you dont
> have to type <instance>.__class__.<varname> all the time.
You still have to if you want to change the class variable.
--
Antoon Pardon
More information about the Python-list
mailing list