On 12/20/06, Robert-Reinder Nederhoed <[EMAIL PROTECTED]> wrote: (..)
> def __init__(self): > """Constructor""" > self.aantal += 1 Hier staat feitelijk: self.aantal = self.aantal + 1, waarbij self.aantal eerst een class attribuut is, maar daarna een instance attribuut wordt. Teller.aantal += 1 doet wat je wil Groet Ivo -- Drs. I.R. van der Wijk / m3r Consultancy B.V. Linux/Python/Zope/Plone and Open Source solutions PO-box 51091, 1007 EB Amsterdam, The Netherlands Email: ivo <at> m3r.nl _______________________________________________ Python-nl mailing list Python-nl@python.org http://mail.python.org/mailman/listinfo/python-nl