def reverse(ol,**kwargs):
if('<STR_LIT>' in kwargs):<EOL><INDENT>mode = kwargs["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>mode = "<STR_LIT>"<EOL><DEDENT>if(mode == "<STR_LIT>"):<EOL><INDENT>new = copy.deepcopy(ol)<EOL>new.reverse()<EOL>return(new) <EOL><DEDENT>else:<EOL><INDENT>ol.reverse()<EOL>return(ol)<EOL><DEDENT>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>
from elist.elist import *
ol = [1,2,3,4]
id(ol)
new = reverse(ol)
ol
new
id(ol)
id(new)
####
ol = [1,2,3,4]
id(ol)
rslt = reverse(ol,mode="original")
ol
rslt
id(ol)
id(rslt)