#NEWLINE# def __deepcopy__( self , memo ) : #NEWLINE# #INDENT# clone = self . __class__ ( self . model ) #NEWLINE# for ( k , v ) in self . __dict__ . items ( ) : #NEWLINE# #INDENT# if ( k in [ '_con' , '_cur' , '_result_cache' , '_result_idx' , '_result_generator' ] ) : #NEWLINE# #INDENT# clone . __dict__ [ k ] = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( k == '_batch' ) : #NEWLINE# #INDENT# clone . __dict__ [ k ] = self . _batch #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( k == '_timeout' ) : #NEWLINE# #INDENT# clone . __dict__ [ k ] = self . _timeout #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# clone . __dict__ [ k ] = copy . deepcopy ( v , memo ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return clone