Write a method to support setting indexed value inside the DAG.
for example:
we currently can do the following:
from tawazi import xn, dag
@xn
def mydict(): return {"a": 1}
@dag
def pipe():
val = mydict()
return val["a"]
but we can't do the following:
from tawazi import xn, dag
@xn
def mydict(): return {"a": 1}
@dag
def pipe():
val = mydict()
val["b"] = 2 # will set a value on the UsageExecNode directly because __setitem__ isn't implemented
return val["a"], val["b"]
Write a method to support setting indexed value inside the DAG. for example: we currently can do the following:
but we can't do the following: