This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Sergey.Kirpichev, rhettinger, tim.peters
Date 2021-05-20.00:03:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621469018.51.0.202708405417.issue44154@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-05-20 00:03:38rhettingersetrecipients: + rhettinger, tim.peters, Sergey.Kirpichev
2021-05-20 00:03:38rhettingersetmessageid: <1621469018.51.0.202708405417.issue44154@roundup.psfhosted.org>
2021-05-20 00:03:38rhettingerlinkissue44154 messages
2021-05-20 00:03:38rhettingercreate