Like `pretty` but print to stdout.
(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH)
| 145 | |
| 146 | |
| 147 | def 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 | |
| 157 | class _PrettyPrinterBase(object): |
| 158 |