◐ Shell
reader mode source ↗
Skip to content

bpo-30670: Add pp function to the pprint module#11769

Merged
rhettinger merged 10 commits into
python:masterfrom
remilapeyre:use-insertion-order-in-pprint
Mar 22, 2019
Merged

bpo-30670: Add pp function to the pprint module#11769
rhettinger merged 10 commits into
python:masterfrom
remilapeyre:use-insertion-order-in-pprint

Conversation

@remilapeyre

@remilapeyre remilapeyre commented Feb 6, 2019

Copy link
Copy Markdown

Add sort_dicts to pprint.PrettyPrinter, pprint.pformat and pprint.pprint

https://bugs.python.org/issue30670

Add sort_dicts to pprint.PrettyPrinter, pprint.pformat and pprint.pprint

@eamanu eamanu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

I test the behavior (ubuntu 18.04) and this PR accomplish with the bpo. IMO, after solve the Travis CI error this should be ready for merge. Before be review by a core dev :-)

@remilapeyre

Copy link
Copy Markdown
Author

Thanks @vadmium!

* Add "pp" to __all__
* Drop mention of alphabetical sorting. It is just plain sorting
  (i.e. dict with integer keys get sorted as well).
* Fix spelling of "parameter"
@rhettinger rhettinger merged commit 96831c7 into python:master Mar 22, 2019
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.

9 participants