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