#NEWLINE# def print_list( clist , indent = 0 , width = 74 ) : #NEWLINE# #INDENT# indent = min ( max ( indent , 0 ) , ( width - 1 ) ) #NEWLINE# if indent : #NEWLINE# #INDENT# print ( ( ' ' * indent ) , end = '' ) #NEWLINE# #UNINDENT# col = ( indent + 2 ) #NEWLINE# for c in clist [ : ( - 1 ) ] : #NEWLINE# #INDENT# ps = ( str ( c ) + ',' ) #NEWLINE# col = ( ( col + len ( ps ) ) + 1 ) #NEWLINE# if ( col > width ) : #NEWLINE# #INDENT# print ( ) #NEWLINE# col = ( ( indent + len ( ps ) ) + 1 ) #NEWLINE# if indent : #NEWLINE# #INDENT# print ( ( ' ' * indent ) , end = '' ) #NEWLINE# #UNINDENT# #UNINDENT# print ( ps , end = '' ) #NEWLINE# #UNINDENT# if ( ( col + len ( clist [ ( - 1 ) ] ) ) > indent ) : #NEWLINE# #INDENT# print ( ) #NEWLINE# if indent : #NEWLINE# #INDENT# print ( ( ' ' * indent ) , end = '' ) #NEWLINE# #UNINDENT# #UNINDENT# print ( clist [ ( - 1 ) ] )