Format a Python object into a pretty-printed representation.
(object, indent=1, width=80, depth=None, *,
compact=False, sort_dicts=True, underscore_numbers=False)
| 54 | |
| 55 | |
| 56 | def pformat(object, indent=1, width=80, depth=None, *, |
| 57 | compact=False, sort_dicts=True, underscore_numbers=False): |
| 58 | """Format a Python object into a pretty-printed representation.""" |
| 59 | return PrettyPrinter(indent=indent, width=width, depth=depth, |
| 60 | compact=compact, sort_dicts=sort_dicts, |
| 61 | underscore_numbers=underscore_numbers).pformat(object) |
| 62 | |
| 63 | |
| 64 | def pp(object, *args, sort_dicts=False, **kwargs): |
nothing calls this directly
no test coverage detected