super question
Danra
danra at walla.co.il
Mon Apr 7 14:56:42 EDT 2003
Hi,
I must be doing something wrong, but it seems that the typical use for
the 'super' function, suggested in its help and in the python library
refernce, does not work for me.
Here's my experience with 'super':
>>> class b:
pass
>>> class c(b):
pass
>>> super(c)
Traceback (most recent call last):
File "<pyshell#6>", line 1, in ?
super(c)
TypeError: super() argument 1 must be type, not classobj
>>> super(c,c())
Traceback (most recent call last):
File "<pyshell#7>", line 1, in ?
super(c,c())
TypeError: super() argument 1 must be type, not classobj
What am I doing wrong?
P.S. pardon the pun in the question's subject :)
More information about the Python-list
mailing list