From Dive into Python:
Class attributes are available both through direct reference to the class and through any instance of the class. Clas
Class attributes are available both through direct reference to the class and through any instance of the class.
Clas
Before:
c.counter = 0 v.counter -> c.counter
During:
c.counter = 0 v.counter = c.counter + 1
After:
c.counter = 0 v.counter = 1