On Thu, Feb 21, 2013 at 9:02 PM, Aaron Meurer <
asme...@gmail.com> wrote:
> On Feb 21, 2013, at 6:13 AM, Johan Hake <
johan...@gmail.com> wrote:
>
> Thanks both of you!
>
> Not sure I will be able to use Mul(..., evaluate=False) as I am executing
> math code written in sympy. Having to rewrite the math using Mul would
> clutter my code. When I try to turn of all evaluation by changing the
> default argument to AssocOp to evaluate=False, I get recursion error when
> printing some of the expressions.
>
>
> That's doing too much. That will disable x*x => x**2 or even x - x => 0.
>
>
> Also applying the fixes as suggested by the two commits in the branch linked
> to in issue1497, did not do anything to the problem.
>
>
> Just dig through Mul.flatten and figure out where it is happening. The code
> is a little complicated, but it is well commented.
>