MCPcopy Create free account
hub / github.com/ipython/ipython / pprint

Function pprint

IPython/lib/pretty.py:147–155  ·  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

145
146
147def pprint(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH):
148 """
149 Like `pretty` but print to stdout.
150 """
151 printer = RepresentationPrinter(sys.stdout, verbose, max_width, newline, max_seq_length=max_seq_length)
152 printer.pretty(obj)
153 printer.flush()
154 sys.stdout.write(newline)
155 sys.stdout.flush()
156
157class _PrettyPrinterBase(object):
158

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