Does it make sense to write a class BasicHandler(object): in Python 2? Is object not inherited by default?

  • 2
    In the second - it has. More, for example, here - beheerder

1 answer 1

In the second - it has. The default classes are not "new style" (the "new" classes were introduced in 2002), but for the sake of compatibility, everything was left as is. A new class or an old one doesn’t affect a lot of things, but the type() output will differ, the order of calling methods during inheritance - 2.3 MRO , metaclasses, the way the __специальных__ methods are called. It probably doesn't make sense to reprint everything - you can read more here.