Stefan Krah added the comment:

Let's re-target this issue:

Implementing as_integer_ratio() sounds reasonable, but let's hope
people won't try to convert Decimal('1E+999999999999999999').


Mark, was there perhaps a reason not to add the method?

----------
assignee:  -> skrah
nosy: +mark.dickinson
title: Improve performance of statistics._decimal_to_ratio and 
fractions.from_decimal -> Add Decimal.as_integer_ratio()

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25928>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to