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

Function pretty

IPython/lib/pretty.py:153–161  ·  view source on GitHub ↗

Pretty print the object's representation.

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

Source from the content-addressed store, hash-verified

151 return items
152
153def pretty(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH):
154 """
155 Pretty print the object's representation.
156 """
157 stream = StringIO()
158 printer = RepresentationPrinter(stream, verbose, max_width, newline, max_seq_length=max_seq_length)
159 printer.pretty(obj)
160 printer.flush()
161 return stream.getvalue()
162
163
164def pprint(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH):

Callers 1

getsourceFunction · 0.90

Calls 3

prettyMethod · 0.95
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…