calling super()

Laszlo Nagy gandalf at designaproduct.biz
Wed Apr 4 15:30:51 EDT 2007


> And here's the error message I get:
>
> Traceback (most recent call last):
>   File "e:/PyEN/inherit.py", line 16, in <module>
>     N = NewPage();
>   File "e:/PyEN/inherit.py", line 12, in __init__
>     super(NewPage, self).__init__();
> TypeError: super() argument 1 must be type, not classobj
>   
Super works correctly for new-style classes only. Try to inherit from 
"object".

class HTMLMain(object):




Best,

   Laszlo




More information about the Python-list mailing list