#NEWLINE# @ staticmethod #NEWLINE# def _indexed_process_limits( limits ) : #NEWLINE# #INDENT# repl = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# newlimits = [ ] #NEWLINE# for i in limits : #NEWLINE# #INDENT# if isinstance ( i , ( tuple , list , Tuple ) ) : #NEWLINE# #INDENT# v = i [ 0 ] #NEWLINE# vrest = i [ 1 : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# v = i #NEWLINE# vrest = ( ) #NEWLINE# #UNINDENT# if isinstance ( v , Indexed ) : #NEWLINE# #INDENT# if ( v not in repl ) : #NEWLINE# #INDENT# r = Dummy ( str ( v ) ) #NEWLINE# repl [ v ] = r #NEWLINE# #UNINDENT# newlimits . append ( ( ( r , ) + vrest ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# newlimits . append ( i ) #NEWLINE# #UNINDENT# #UNINDENT# return ( repl , newlimits )