Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium NeedsReview smichr

New issue 2900 by [email protected]: xreplace rebuilds expressions when there is no rule
http://code.google.com/p/sympy/issues/detail?id=2900

I'm not sure that xreplace should do anything to an expression if the rule is empty, hence foo.xreplace({}) should return foo. (If foo is unevaluated, it becomes evaluated if xreplace({}) is applied to it.)

I've made a commit making it return foo unchanged in https://github.com/sympy/sympy/pull/824

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