super() raises "TypeError: must be type, not classobj" for new-style class
super() raises "TypeError: must be type, not classobj" for new-style class Question: The following use of super() raises a TypeError: why? >>> from HTMLParser import HTMLParser >>> class TextParser(HTMLParser): … def __init__(self): … super(TextParser, self).__init__() … self.all_data = [] … >>> TextParser() (…) TypeError: must be type, not classobj There is a similar question on …