Chris Niekel wrote: > TypeError: super() argument 1 must be type, not classobj > Ah, er wordt niet van 'object' gesubclassed...
>>> class test1(object): ... def __init__(self): ... pass ... >>> class test2(test1): ... def __init__(self): ... super(test2, self).__init__() ... >>> test2() <__main__.test2 object at 0xb7aa574c> 'super' werkt alleen bij 'new style classes', oftewel als je van 'object' subclassed (aan te raden, brengt een hoop fijnigheid). Cheers, Guido _______________________________________________ Python-nl mailing list Python-nl@python.org http://mail.python.org/mailman/listinfo/python-nl