Tim Peters <t...@python.org> added the comment: Serhiy, I don't understand. If `numbers.Rational` is in fact a superclass of `numpy.int64`, then the latter will inherit an implementation added to the former. The idea here isn't to add an abstract method to the Rational interface, but a concrete default implementation:
class Rational(Real): ... def as_integer_ratio(self): return (self.numerator, self.denominator) Or, as for Python ints, is Rational a "make believe" (virtual) superclass of numpy.int64? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33073> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com