def pretty_print(obj, verbose=False, max_width=79, newline='\n', max_seq_length=MAX_SEQ_LENGTH):
 printer = RepresentationPrinter(sys.stdout, verbose, max_width, newline, max_seq_length=max_seq_length)
 printer.pretty(obj)
 printer.flush()
 sys.stdout.write(newline)
 sys.stdout.flush()

def pretty_print ( obj , verbose = False , max_width = 79 , newline = '\n' , max_seq_length = MAX_SEQ_LENGTH ) : printer = RepresentationPrinter ( sys . stdout , verbose , max_width , newline , max_seq_length = max_seq_length ) printer . pretty ( obj ) printer . flush ( ) sys . stdout . write ( newline ) sys . stdout . flush ( )
prints expr in pretty form .