Pretty-print a Python object to a stream [default is sys.stdout].
(object, stream=None, indent=1, width=80, depth=None, *,
compact=False, sort_dicts=True, underscore_numbers=False)
| 44 | |
| 45 | |
| 46 | def pprint(object, stream=None, indent=1, width=80, depth=None, *, |
| 47 | compact=False, sort_dicts=True, underscore_numbers=False): |
| 48 | """Pretty-print a Python object to a stream [default is sys.stdout].""" |
| 49 | printer = PrettyPrinter( |
| 50 | stream=stream, indent=indent, width=width, depth=depth, |
| 51 | compact=compact, sort_dicts=sort_dicts, |
| 52 | underscore_numbers=underscore_numbers) |
| 53 | printer.pprint(object) |
| 54 | |
| 55 | |
| 56 | def pformat(object, indent=1, width=80, depth=None, *, |
no test coverage detected