There is a
issubclass
built-in.class Bar: ... class Foo(Bar): ... foo_inst = Foo() bar_inst = Bar() type(bar_inst) in type(foo_inst).mro() # but easier is the subclasscheck issubclass(type(foo_inst), type(bar_inst))
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!