#NEWLINE# def compute_chunk( source , target , chunk , chunk_expr , parts ) : #NEWLINE# #INDENT# ' Pull out a part, compute it, insert it into the target ' #NEWLINE# ( source_part , target_part ) = parts #NEWLINE# part = source [ source_part ] #NEWLINE# result = compute ( chunk_expr , { #NEWLINE# #INDENT# chunk : part , #NEWLINE# #UNINDENT# } , return_type = 'native' ) #NEWLINE# target [ target_part ] = result