def replace_value_some(ol,src_value,dst_value,*seqs,**kwargs):
if('<STR_LIT>' in kwargs):<EOL><INDENT>mode = kwargs["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>mode = "<STR_LIT>"<EOL><DEDENT>return(replace_value_seqs(ol,src_value,dst_value,list(seqs),mode=mode))<EOL>
from elist.elist import *
ol = [1,'a',3,'a',5,'a',6,'a']
id(ol)
new = replace_value_some(ol,'a','AAA',0,1)
ol
new
id(ol)
id(new)
####
ol = [1,'a',3,'a',5,'a',6,'a']
id(ol)
rslt = replace_value_some(ol,'a','AAA',0,1,mode="original")
ol
rslt
id(ol)
id(rslt)