You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pprint -> underscore_numbers argument not working #89720
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:
Activity
jpvincent1980 commentedon Oct 21, 2021
Hello,
I just tried the new attribute underscore_numbers with pprint, it doesn't work for me. I'm working on Windows.
[cid:8779885d-01bf-4162-9427-a44de152f7ac]
Best regards,
Jean-Philippe
[-]Issue 42914[/-][+]pprint -> underscore_numbers argument not working[/+][-]Issue 42914[/-][+]pprint -> underscore_numbers argument not working[/+]ericvsmith commentedon Oct 21, 2021
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:
ericvsmith commentedon Oct 21, 2021
It's a bug in pprint.py. PR to follow shortly.
ericvsmith commentedon Oct 21, 2021
New changeset 087f089 by Eric V. Smith in branch 'main':
bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)
087f089
miss-islington commentedon Oct 21, 2021
New changeset 6b75ad5 by Miss Islington (bot) in branch '3.10':
bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)
6b75ad5