7
super () plantea "TypeError: debe ser type, no classobj" para la clase de estilo nuevo
El siguiente uso de super()plantea un error de tipo: ¿por qué? >>> from HTMLParser import HTMLParser >>> class TextParser(HTMLParser): ... def __init__(self): ... super(TextParser, self).__init__() ... self.all_data = [] ... >>> TextParser() (...) TypeError: must be type, not classobj Hay una pregunta similar en StackOverflow: Python super () plantea TypeError …