Backport of pprint from Python 3.9 to Python 3.6-3.8
See the Python documentation for examples and usage information.
The pertinent changes from Python 3.6 to Python 3.9 are:
pprintcan now pretty-printtypes.SimpleNamespace. Contributed by Carl Bordum Hansenin Python 3.9.pprint.pphas been added to pretty-print objects with dictionary keys being sorted with their insertion order by default. Parameter sort_dicts has been added topprint.pprint,pprint.pformatandpprint.PrettyPrinter. Contributed by Rémi Lapeyre in Python 3.8.
| Tests | |
|---|---|
| PyPI | |
| Activity | |
| QA | |
| Other |
pprint36 can be installed from PyPI.
To install with pip:
$ python -m pip install pprint36