- 主頁 [github.com]
drop-in replacement for pprint that's actually pretty
Unlike pprint, pprintpp strives to emit a readable, largely PEP8-compliant, representation of its input.
It also has explicit support for: the collections module (defaultdict and Counter) and numpy arrays.
Unicode characters, when possible, will be printed un-escaped. This is done by checking both the output stream's encoding (defaulting to utf-8) and the character's Unicode category. An effort is made to print only characters which will be visually unambiguous: letters and numbers will be printed un-escaped, spaces, combining characters, and control characters will be escaped.
Subclassess of built-in collection types which don't define a new __repr__ will have their class name explicitly added to their repr (while custom __repr__ methods will be respected).
其他與 python3-pprintpp 有關的套件
- dep: python3
- interactive high-level object-oriented language (default python3 version)