New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:
Goal: make int() more interoperable with float by making a float/Decimal method also available on ints. This will let mypy treat ints as a subtype of floats. See: https://mail.python.org/pipermail/python-dev/2018-March/152384.html Open question: Is this also desired for fractions.Fraction and numbers.Rational? ---------- assignee: Nofar Schnider components: Library (Lib) messages: 313780 nosy: Nofar Schnider, gvanrossum, rhettinger priority: normal severity: normal status: open title: Add as_integer_ratio() to int() objects type: enhancement versions: Python 3.8 _______________________________________ 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