[Tutor] super question...

Alan Gauld alan.gauld@blueyonder.co.uk
Mon Jun 2 04:44:01 2003


I haven't used super yet but...

> class A:
> class B(A):
> TypeError: super() argument 1 must be type, not class

I think this is because super only works on new style classes 
- ie they must explicitly inherit from object

So you need to make class A inherit from object first of all.

class A(object)...

class B(A)...

HTH,
Alan G.