class variable won't icrement!

Aahz aahz at
Thu Sep 12 10:49:19 EDT 2002

In article <alpner$bm$1 at>,
Eric Brunel  <eric.brunel at> wrote:
>I always found that inheritance of class attributes to instance attributes 
>was really misleading, and I even think it would be better if it were 
>simply removed from Python. IMHO, it would far more conform to the 
>"explicit is better than implicit" rule that is one of the basis of Python.

If I think of it as "scope resolution" rather than "inheritance", I find
that it makes more sense.  It works exactly the same way as hiding a
global with a local.
Aahz (aahz at           <*>

Project Vote Smart:

More information about the Python-list mailing list