Skip to content
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

bpo-45557: Fix underscore_numbers in pprint.pprint(). #29129

Merged
merged 2 commits into from
Oct 21, 2021

Conversation

ericvsmith
Copy link
Member

@ericvsmith ericvsmith commented Oct 21, 2021

pprint.pprint() always passes underscore_numbers=False to pformat(), it should use underscore_numbers=underscore_numbers.

https://bugs.python.org/issue45557

@ericvsmith
Copy link
Member Author

There's no test for this, because in general the pprint module doesn't test pprint.pprint(). I'll open an issue for that.

@ericvsmith
Copy link
Member Author

@ericvsmith ericvsmith merged commit 087f089 into python:main Oct 21, 2021
@miss-islington
Copy link
Contributor

Thanks @ericvsmith for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 21, 2021
@bedevere-bot
Copy link

GH-29133 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Oct 21, 2021
@ericvsmith ericvsmith deleted the issue45557 branch October 21, 2021 20:43
miss-islington added a commit that referenced this pull request Oct 21, 2021
(cherry picked from commit 087f089)

Co-authored-by: Eric V. Smith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants