I just sent in a WIP pull request at https://github.com/sympy/sympy/pull/2917
I think that this particular issue could use some visibility so I'm CCing the listhost. This issue comes up frequently from our users. PR intro follows: Sometimes we want to turn off automatic evaluation. We usually suggest that people make the following change # Beforex + x # AfterAdd(x, x, evaluate=False) This is ugly and, more importantly, hard to do generally on large complex operations. This PR sets the default value of the evaluate keyword to a globally accessible variable. It then introduces an evaluate context manager to manage that global variable >>> from sympy.abc import x>>> from sympy.core.operations import evaluate>>> >>> print x + x2*x>>> with evaluate(False):... print x + xx + x This PR is only a proof of concept. It only works on AssocOp. I think that it should be easy to extend to other operations. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
