
Dec. 4, 2003
2:12 p.m.
(It has been pointed out that subclassing int isn't very useful, so maybe this is a moot point. Does anybody have a real use case?)
isinstance(x, int) That doesn't require an inheritance relationship between the integral types, but it does require that long inherit from int. So int could be a base class with long and short inheriting from it, or long could inherit from int.