Help with super()
Christopher J. Bottaro
cjbottaro at alumni.cs.utexas.edu
Mon Dec 6 16:55:46 EST 2004
Why don't this code work?
import PRI
class Poscdnld_PYIO(PRI.BasicBatch):
def __init__(self, *argv):
super(Poscdnld_PYIO, self).__init__(*argv)
x = Poscdnld_PYIO()
I get this exception:
File "poscdnld_pyio.py", line 52, in __init__
super(Poscdnld_PYIO, self).__init__(*argv)
TypeError: super() argument 1 must be type, not classobj
What am I doing wrong? Thanks.
More information about the Python-list
mailing list