friendlysam.opt.Sum.args¶
-
Sum.
args
¶ This property holds the arguments of the operation.
See also
create()
.Examples
>>> x, y = Variable('x'), Variable('y') >>> expr = x + y >>> expr <friendlysam.opt.Add at 0x...> >>> expr.args == (x, y) True
>>> (x + y) * 2 <friendlysam.opt.Mul at 0x...> >>> _.args (<friendlysam.opt.Add at 0x...>, 2)