Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
-1 for having this spill into the math module. We're already started down a different path; otherwise, there would have been no need to add the as_integer_ratio method to int/bool. That was done so that x.as_integer_ratio() would work for all the concrete classes where it made sense. Right now, the only concrete class that is missing the method is Fractions. Adding it there is trivial and it doesn't garbage-up the math module with a pass-through function. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37822> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com