Gary Levin
12/07/2020, 9:54 PMwith Flow('Arithmetic') as flow:
x, y = Parameter('x'), Parameter('y')
operations = {
'+': x + y,
'-': x - y,
'*': x * y,
'/': x / y
}
resulted in operations containing
{'+': <Task: Add>, '-': <Task: Sub>, '*': <Task: Mul>, '/': <Task: Div>}
That is not what python would normally produce for the dict. "x+y" is coerced to <Task: Add>. "+" must be overridden in the Flow context.
Where will I find the description of what magic is going on here? For instance, which operators are overridden?Michal Mucha
12/07/2020, 11:08 PMMichal Mucha
12/07/2020, 11:09 PM___add___
etc ?Michal Mucha
12/07/2020, 11:09 PM