super argument 1 must be type not classobj
Frame is not a new-style class, but super requires new-style classes to work. In python-3.x where everything is a new-style class the super will work properly. You need to hardcode the superclass and method in python 2: Frame.__init__(self, master). Like, 在子类Asub中调用super初始化时发生错误:其中A为超类,仔细检查并无语法错误。 super(Asub, self).init() TypeError: super() argument 1 must be type, not classobj 原因如下: 在python2.2版本之前,直接调用超类的方法,后来改成通过super来调用,原因是为了解决多重继承中的钻石形状问题。python里的super只 ...
相關軟體 SUPER Video Converter 資訊 | |
---|---|
![]() super argument 1 must be type not classobj 相關參考資料
inheritance - TypeError: super() argument 1 must be type, not int ...
You should do instead of super(chat_id, user1).__init__() you should do: super().__init__(chat_id, user1) # Work in Python 3.6 super(GroupMessage, self).__init__(chat_id, user1) # Work in Python 2.7. ... https://stackoverflow.com python - TypeError: super() argument 1 must be type, not classobj ...
Frame is not a new-style class, but super requires new-style classes to work. In python-3.x where everything is a new-style class the super will work properly. You need to hardcode the superclass and... https://stackoverflow.com Python 调用super初始化报错"super() argument 1 must be type, not ...
在子类Asub中调用super初始化时发生错误:其中A为超类,仔细检查并无语法错误。 super(Asub, self).init() TypeError: super() argument 1 must be type, not classobj 原因如下: 在python2.2版本之前,直接调用超类的方法,后来改成通过super来调用,原因是为了解决多重继承中的钻石形状问题。python里的... https://blog.csdn.net TypeError: super() argument 1 must be type, not classobj (Python 2.6.6 ...
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects. https://github.com |