[issue45557] pprint -> underscore_numbers argument not working
Eric V. Smith
report at bugs.python.org
Thu Oct 21 16:05:25 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
Please do not post screen shots. They don't work for people with vision impairments, and we can't copy and past from them, so it makes it harder for us to help you.
It looks like it works with pformat, and not pprint:
>>> pprint.pformat(10000, underscore_numbers=True)
'10_000'
>>> pprint.pprint(10000, underscore_numbers=True)
10000
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45557>
_______________________________________
More information about the Python-bugs-list
mailing list