[New-bugs-announce] [issue33073] Add as_integer_ratio() to int() objects
Raymond Hettinger
report at bugs.python.org
Tue Mar 13 17:25:05 EDT 2018
New submission from Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33073>
_______________________________________
More information about the New-bugs-announce
mailing list