sympy/sympy — pull request #1150 by Narsil (2012-03-20 17:06:38+00:00)
Title: Fix issue 2684. Pickling note removed because it's not relevant anymore.

This patch should fix both issues by correctly pickling/unpickling objects.

When unpickling an object, evaluate=False is passed whenever possible because object has already been evaluated before. Some constructors do not accept evaluate kwarg which is why we have a try:except:.

After calling new, setstate needs to be called to set assumptions and other slots for objects.

Issue 2204: http://code.google.com/p/sympy/issues/detail?id=2204
Issue 2684: http://code.google.com/p/sympy/issues/detail?id=2684