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 <>
> 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(',', '_')
Date User Action Args
2021-01-13 03:35:29rhettingersetrecipients: + rhettinger, fov
2021-01-13 03:35:29rhettingersetmessageid: <>
2021-01-13 03:35:29rhettingerlinkissue42914 messages
2021-01-13 03:35:29rhettingercreate