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

Function pformat

Lib/pprint.py:56–61  ·  view source on GitHub ↗

Format a Python object into a pretty-printed representation.

(object, indent=1, width=80, depth=None, *,
            compact=False, sort_dicts=True, underscore_numbers=False)

Source from the content-addressed store, hash-verified

54
55
56def pformat(object, indent=1, width=80, depth=None, *,
57 compact=False, sort_dicts=True, underscore_numbers=False):
58 """Format a Python object into a pretty-printed representation."""
59 return PrettyPrinter(indent=indent, width=width, depth=depth,
60 compact=compact, sort_dicts=sort_dicts,
61 underscore_numbers=underscore_numbers).pformat(object)
62
63
64def pp(object, *args, sort_dicts=False, **kwargs):

Callers

nothing calls this directly

Calls 2

PrettyPrinterClass · 0.85
pformatMethod · 0.80

Tested by

no test coverage detected