Updates:
Labels: Milestone-Release0.7.1
Comment #6 on issue 2070 by asmeurer: All elements of .args should be Basic
http://code.google.com/p/sympy/issues/detail?id=2070
Piecewise also causes problems with this, because of the use of True. We
either need to make ExprCondPair work like we made Integral work, or else
make Basic boolean classes.
In [23]: Piecewise((x,x < 1), (y, True))
Out[23]:
⎧x for x < 1
⎨
⎩y otherwise
In [24]: Piecewise((x,x < 1), (y, True)).args
Out[24]: (ExprCondPair(x, x < 1), ExprCondPair(y, True))
In [25]: Piecewise((x,x < 1), (y, True)).args[1].args[1]
Out[25]: True
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.