Tim Peters <t...@python.org> added the comment: Serhiy, we already went down the path of implementing this as a method. Of course `numbers.Rational` could define the method as `return (self.numerator, self.denominator)` for itself and its subclasses. Unless I'm confused, that would "magically" define the method for (at least) ints and Fractions too - but I didn't try it.
---------- _______________________________________ 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