Updates:
        Summary: Unpickling a Singleton doesn't return the singleton object
        Status: Accepted
        Labels: -Priority-Medium Priority-High Milestone-Release0.7.1

Comment #1 on issue 2204 by [email protected]: Unpickling a Singleton doesn't return the singleton object
http://code.google.com/p/sympy/issues/detail?id=2204

The problem is that the unpickled object should be the same as the original one (not just equal to it), but it isn't:
In [6]: aa = pickle.loads(pickle.dumps(S.Pi))

In [7]: type(aa)
Out[7]: <class 'sympy.core.numbers.Pi'>

In [8]: aa is S.Pi
Out[8]: False


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to