Calling superclass
Florian Lindner
Florian.Lindner at xgm.de
Thu May 4 11:56:40 EDT 2006
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
More information about the Python-list
mailing list