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 fov, rhettinger
Date 2021-01-13.03:35:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610508929.82.0.0120360998358.issue42914@roundup.psfhosted.org>
In-reply-to
Content
> It would be nice if pprint learned to insert underscores in long numbers

+1 but I would make this optional.


> Here is an implementation of the safe repr for numbers if helpful

I suggest using the existing string formatting tools as a foundation

    >>> format(10**9, ',d').replace(',', '_')
    '1_000_000_000'
History
Date User Action Args
2021-01-13 03:35:29rhettingersetrecipients: + rhettinger, fov
2021-01-13 03:35:29rhettingersetmessageid: <1610508929.82.0.0120360998358.issue42914@roundup.psfhosted.org>
2021-01-13 03:35:29rhettingerlinkissue42914 messages
2021-01-13 03:35:29rhettingercreate