MCPcopy Index your code
hub / github.com/RustPython/RustPython / pprint

Function pprint

Lib/pprint.py:46–53  ·  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

44
45
46def 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
56def pformat(object, indent=1, width=80, depth=None, *,

Callers 1

ppFunction · 0.85

Calls 2

pprintMethod · 0.95
PrettyPrinterClass · 0.85

Tested by

no test coverage detected