#NEWLINE# def _deepcopy_tuple( x , memo ) : #NEWLINE# #INDENT# y = [ ] #NEWLINE# for a in x : #NEWLINE# #INDENT# y . append ( deepcopy ( a , memo ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return memo [ id ( x ) ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# for i in range ( len ( x ) ) : #NEWLINE# #INDENT# if ( x [ i ] is not a [ i ] ) : #NEWLINE# #INDENT# y = tuple ( y ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# y = x #NEWLINE# #UNINDENT# return y