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 miserlou2
Recipients FlipperPA, miserlou2, mivade, serhiy.storchaka
Date 2017-10-10.21:33:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507671236.13.0.213398074469.issue31749@psf.upfronthosting.co.za>
In-reply-to
Content
Yep, as I mentioned, it should be configurable to use either format. Localization is an excellent point as well, so, all in all, the optional arguments to the function are format, significant digits, and delimiter. That's not an unreasonable amount of configurability.

It's not a complex problem, the solutions are fairly simple, but there are many ways to shoot yourself in the foot when rolling your own. There are already many packages which attempt this, most of which aren't used by any serious projects, who instead use their own implementations. There are just as many snippets of partial solutions floating around the internet as well. There is no canonical way to solve this common problem.

This is exactly why this common functionality should be added to the standard library, so that this extremely common function doesn't have to be imported from some-random-jamook's-untrustworthy-project-on-PyPI or rewritten from scratch for every project.
History
Date User Action Args
2017-10-10 21:33:56miserlou2setrecipients: + miserlou2, serhiy.storchaka, mivade, FlipperPA
2017-10-10 21:33:56miserlou2setmessageid: <1507671236.13.0.213398074469.issue31749@psf.upfronthosting.co.za>
2017-10-10 21:33:56miserlou2linkissue31749 messages
2017-10-10 21:33:56miserlou2create