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