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

Function pprint

IPython/lib/pretty.py:164–172  ·  view source on GitHub ↗

Like `pretty` but print to stdout.

(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH)

Source from the content-addressed store, hash-verified

162
163
164def pprint(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH):
165 """
166 Like `pretty` but print to stdout.
167 """
168 printer = RepresentationPrinter(sys.stdout, verbose, max_width, newline, max_seq_length=max_seq_length)
169 printer.pretty(obj)
170 printer.flush()
171 sys.stdout.write(newline)
172 sys.stdout.flush()
173
174
175class _PrettyPrinterBase:

Callers 2

pretty.pyFile · 0.85
storeMethod · 0.85

Calls 4

prettyMethod · 0.95
flushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…