goodok/sympy — pull request #1 by goodok (2012-03-21 20:50:32+00:00)
Title: Fix `cacheit` to cache `Add(x,y)` and `Add(y,x)` correctly.

Before this pull request the `Add(x,y)` and `Add(y,x)` yield different objects.

It was because the `cacheit` is called before `__new__` method. In turn, the `flatten` method is calls inside the `__new__`.

In this pull request we inject the simple `flatting` procedure to the `cacheit` wrapper.

Notes:
Only one tests became failure. It is `test_heurisch_symbolic_coeffs` and marked as XFAIL.