MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / pprint

Function pprint

tools/python-3.11.9-amd64/Lib/pprint.py:48–55  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 6

reportMethod · 0.90
dump_eventMethod · 0.90
finalize_optionsMethod · 0.90
finalize_optionsMethod · 0.90
_dump_stateFunction · 0.90
ppFunction · 0.70

Calls 2

pprintMethod · 0.95
PrettyPrinterClass · 0.85

Tested by

no test coverage detected