F
Florian Lindner
Hello,
I try to call the superclass of the ConfigParser object:
class CustomizedConfParser(ConfigParser.SafeConfigParser):
def get(self, section, attribute):
try:
return super(CustomizedConfParser, self).get(section, attribute)
# [...]
but that gives only
return super(CustomizedConfParser, self).get(section, attribute)
TypeError: super() argument 1 must be type, not classobj
I don't really understand the error message.
Thanks,
Florian
I try to call the superclass of the ConfigParser object:
class CustomizedConfParser(ConfigParser.SafeConfigParser):
def get(self, section, attribute):
try:
return super(CustomizedConfParser, self).get(section, attribute)
# [...]
but that gives only
return super(CustomizedConfParser, self).get(section, attribute)
TypeError: super() argument 1 must be type, not classobj
I don't really understand the error message.
Thanks,
Florian