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 vstinner
Recipients Carl.Friedrich.Bolz, eric.smith, fredrikj, mark.dickinson, pernici, serhiy.storchaka, steve21, vstinner, xuanji
Date 2021-04-13.15:47:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618328862.65.0.47998587721.issue3451@roundup.psfhosted.org>
In-reply-to
Content
Python has a reasonable efficiency up to 1000 decimal digits (according to benchmark) which is already really great! Operations with more than 1000 decimal digits is an uncommon. IMO you should use a dedicated library like GMP for that.

I would prefer to keep CPython code simple enough to maintain. Objects/longobject.c is already 5744 lines of C code. longformat_BZ.diff adds around 700 lines of code, but it only makes str(int) starting at 2000 decimal digits.

Yeah, we could do better for integers with <many digits>, but I would prefer not to :-) Python has a limited number of volunteers working on it, and it's not specialized in numbers. We should keep the maintenance burden at an acceptable level ;-)
History
Date User Action Args
2021-04-13 15:47:42vstinnersetrecipients: + vstinner, mark.dickinson, pernici, Carl.Friedrich.Bolz, eric.smith, fredrikj, steve21, xuanji, serhiy.storchaka
2021-04-13 15:47:42vstinnersetmessageid: <1618328862.65.0.47998587721.issue3451@roundup.psfhosted.org>
2021-04-13 15:47:42vstinnerlinkissue3451 messages
2021-04-13 15:47:41vstinnercreate