-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pprint -> underscore_numbers argument not working #89720
Comments
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 |
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 |
It's a bug in pprint.py. PR to follow shortly. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: