Comment #22 on issue 1924 by [email protected]: Eq() gets .as_basic() method
http://code.google.com/p/sympy/issues/detail?id=1924

Yes, the name should be something like as_nonrelational (except there is probably a better name than that). as_expr() doesn't make sense as noted above since Eq is already an Expr. Yesterday, I had a Tuple of expressions, half of which were Eqs and half of which weren't, and when I needed them all to be regular expressions, I had to do

system = Tuple(*(i.lhs - i.rhs for i in system if i.is_Relational)) + Tuple(*(i for i in system if not i.is_Relational))

It would have been nicer if I could just do

system = Tuple(*(i.as_nonrelational() for i in system))

--
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.

Reply via email to