I expected isinstance function to return True only for types that exist in object's type mro tuple. But:
>>> isinstance(int(), numbers.Integral)
True
>>> int.__mro__
(<type 'int'>, <type 'object'>)
Why int.mro does not contain numbers.Integral?
I expected isinstance function to return True only for types that exist in object's type mro tuple. But:
>>> isinstance(int(), numbers.Integral)
True
>>> int.__mro__
(<type 'int'>, <type 'object'>)
Why int.mro does not contain numbers.Integral?