#NEWLINE# def _sequence_repr_maker( left , right , base = object ( ) , limit = 8 ) : #NEWLINE# #INDENT# def proxy( self , obj , recursive ) : #NEWLINE# #INDENT# if recursive : #NEWLINE# #INDENT# return _add_subclass_info ( ( ( left + '...' ) + right ) , obj , base ) #NEWLINE# #UNINDENT# buf = [ left ] #NEWLINE# have_extended_section = False #NEWLINE# for ( idx , item ) in enumerate ( obj ) : #NEWLINE# #INDENT# if idx : #NEWLINE# #INDENT# buf . append ( ', ' ) #NEWLINE# #UNINDENT# if ( idx == limit ) : #NEWLINE# #INDENT# buf . append ( '<span class="extended">' ) #NEWLINE# have_extended_section = True #NEWLINE# #UNINDENT# buf . append ( self . repr ( item ) ) #NEWLINE# #UNINDENT# if have_extended_section : #NEWLINE# #INDENT# buf . append ( '</span>' ) #NEWLINE# #UNINDENT# buf . append ( right ) #NEWLINE# return _add_subclass_info ( '' . join ( buf ) , obj , base ) #NEWLINE# #UNINDENT# return proxy