7
super () yeni tip sınıf için “TypeError: tip olmalı, classobj değil” değerini yükseltir
Aşağıdaki kullanım super()bir TypeError oluşturur: neden? >>> from HTMLParser import HTMLParser >>> class TextParser(HTMLParser): ... def __init__(self): ... super(TextParser, self).__init__() ... self.all_data = [] ... >>> TextParser() (...) TypeError: must be type, not classobj StackOverflow'da da benzer bir soru var: Python super (), TypeError öğesini yükseltir ; burada hata, kullanıcı …