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

New issue 2900 by smi...@gmail.com: 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-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to