ash16 / TYTS

0 stars 1 forks source link

old-style-class #27

Open Green077 opened 5 years ago

Green077 commented 5 years ago

https://github.com/ash16/TYTS/blob/c13ea69e5337df93cd12c7e8b882b7c2734511ba/eventController.py#L9 In the latest python version, if a class is not inherited from object class, it means it's a kind of old style class. It has a different inheritance policy compared with the new style class. In other words, if the subclass overrides the method in parent classes, it may lead to different results. If the whole project is implemented by python3, the class is supposed to declare as new style class. All the classes are inherited from object class.