MCPcopy Create free account
hub / github.com/chaimleib/intervaltree / pprint

Function pprint

test/pprint.py:77–83  ·  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,
    enable_pickle=ENABLE_PICKLE_DEFAULT)

Source from the content-addressed store, hash-verified

75
76
77def pprint(object, stream=None, indent=1, width=80, depth=None,
78 enable_pickle=ENABLE_PICKLE_DEFAULT):
79 """Pretty-print a Python object to a stream [default is sys.stdout]."""
80 printer = PrettyPrinter(
81 stream=stream, indent=indent, width=width, depth=depth,
82 enable_pickle=enable_pickle)
83 printer.pprint(object)
84
85def pformat(object, indent=1, width=80, depth=None,
86 enable_pickle=ENABLE_PICKLE_DEFAULT):

Callers 5

write_ivs_dataFunction · 0.90
optimality_test.pyFile · 0.90
optimality_coreFunction · 0.90
verifyMethod · 0.90

Calls 2

pprintMethod · 0.95
PrettyPrinterClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…