Created
September 10, 2011 21:43
-
-
Save asmeurer/1208834 to your computer and use it in GitHub Desktop.
Basic.sort_key fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sympy/core/basic.py b/sympy/core/basic.py | |
index ceeff1c..eac8670 100644 | |
--- a/sympy/core/basic.py | |
+++ b/sympy/core/basic.py | |
@@ -311,7 +311,7 @@ def sort_key(self, order=None): | |
""" | |
from sympy.core.singleton import S | |
- return self.class_key(), (len(self.args), self.args), S.One.sort_key(), S.One | |
+ return self.class_key(), (len(self.args), tuple([i.sort_key() for i in self.args])), S.One.sort_key(), S.One | |
def __eq__(self, other): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment