2021-06-02 20:44:38 +02:00
|
|
|
In Python 2.x, a class is an old-style class if it does not subclass a new-style class. If a class subclasses another class, we should check recursively whether the superclass is a new-style class. If a class does not subclass any class, we know for sure that it is an old-style class.
|