[issue25928] Improve performance of statistics._decimal_to_ratio and fractions.from_decimal
Steven D'Aprano
report at bugs.python.org
Wed Dec 23 15:57:13 EST 2015
Steven D'Aprano added the comment:
On Wed, Dec 23, 2015 at 03:18:28PM +0000, Serhiy Storchaka wrote:
> May be implement the as_integer_ratio() method and/or numerator and
> denominator attributes in the Decimal class?
That would also be good as it will decrease the API differences between
floats and Decimals and make it easier to duck-type one for the other.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25928>
_______________________________________
More information about the Python-bugs-list
mailing list