1. super() and all subclass/superclass stuff only works with new-style classes. I recommend you get in the habit of always typing that (object) on any class definition to make sure it is a new-style class.
Old-style classes (also known as “classic” classes) are always of type classobj; new-style classes are of type type. This is why you got the error message you saw:
TypeError: super() argument 1 must be type, not classobj
4223

被折叠的 条评论
为什么被折叠?



