#NEWLINE# def __render_data_type( self , data ) : #NEWLINE# #INDENT# 'Given a data array for a certain type, render its string encoding.' #NEWLINE# result = [ ] #NEWLINE# last_indx = 0 #NEWLINE# for ( indx , entry ) in sorted ( data . items ( ) ) : #NEWLINE# #INDENT# if entry : #NEWLINE# #INDENT# tmpstr = '' #NEWLINE# if ( ( indx != X10 . __MINIMUM ) and ( ( indx - 1 ) != last_indx ) ) : #NEWLINE# #INDENT# tmpstr = ( '%s%s%s' % ( tmpstr , indx , X10 . __DELIM_NUM_VALUE ) ) #NEWLINE# #UNINDENT# tmpstr = ( '%s%s' % ( tmpstr , self . __escape_extensible_value ( entry ) ) ) #NEWLINE# result . append ( tmpstr ) #NEWLINE# #UNINDENT# last_indx = data #NEWLINE# #UNINDENT# return ( '%s%s%s' % ( X10 . __DELIM_BEGIN , X10 . __DELIM_SET . join ( result ) , X10 . __DELIM_END ) )