> Many thanks for you! > I've never heard of the "staticmethod" , that's great!
Note that you don't need an empty __init__ :
class AAA:
counter = 0
@staticmethod
def counter_increase():
AAA.counter += 1
print "couter now:", AAA.counter
AAA.counter_increase()
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
