Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1262 by ondrej.certik: fix sympy to work in python3.0
http://code.google.com/p/sympy/issues/detail?id=1262

The 2to3 code converts sympy just fine, but then one needs to apply this  
patch:

----------------------------- sympy/core/logic.py  
-----------------------------
index d3ae4ec..293f947 100644
@@ -66,6 +66,16 @@ def __ne__(a, b):
          else:
              return a.args != b.args

+    def __lt__(cls, other):
+        if cls.__cmp__(other)==-1:
+            return True
+        return False
+
+    def __gt__(cls, other):
+        if cls.__cmp__(other)==1:
+            return True
+        return False
+

      def __cmp__(a, b):
          if type(a) is not type(b):


and then fix the imports in sympy/core. Then it could start working.

The way to fix the imports is to just use regular "import something"
syntax, but do not inject things into other modules, because python3.0 is
more strict and this doesn't work.

--
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 sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to