Issue 1177: pickling protocol 2 is totally borken in sympy
http://code.google.com/p/sympy/issues/detail?id=1177

New issue report by ondrej.certik:
Apply this patch:

$ git diff sympy/utilities/
diff --git a/sympy/utilities/tests/test_pickling.py
b/sympy/utilities/tests/test
index a06268d..8dc205a 100644
--- a/sympy/utilities/tests/test_pickling.py
+++ b/sympy/utilities/tests/test_pickling.py
@@ -24,7 +24,7 @@ from sympy.core.ast_parser import SymPyParser,
SymPyTransforme


  def check(a):
-    b = pickle.loads(pickle.dumps(a))
+    b = pickle.loads(pickle.dumps(a, 2))

      d1 = dir(a)
      d2 = dir(b)



and run tests. They utterly fail. This prevents any interesting work with
pickling. It seems like a python bug.


Issue attributes:
        Status: Accepted
        Owner: ----
        Labels: Type-Defect Priority-High

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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