#NEWLINE# def subtarget( self , **kws ) : #NEWLINE# #INDENT# obj = copy . copy ( self ) #NEWLINE# for ( k , v ) in kws . items ( ) : #NEWLINE# #INDENT# if ( not hasattr ( obj , k ) ) : #NEWLINE# #INDENT# raise NameError ( 'unknown option {0!r}' . format ( k ) ) #NEWLINE# #UNINDENT# setattr ( obj , self , v ) #NEWLINE# #UNINDENT# if ( obj . codegen ( ) is not self . codegen ( ) ) : #NEWLINE# #INDENT# obj . cached_internal_func = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return obj