Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

You're right that this won't work for decimal because it takes a string 
constructor.  A fancier reduce might do the trick but it would involve 
modifying the C code (no fun) as well as the Python code.  Also, the conversion 
from decimal to string and back isn't quadratic, so we don't have the same 
worries.  Lastly, really large fractions happen naturally as they interoperate, 
but oversized decimals are uncommon.

----------

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

Reply via email to