From a8d10ce2388429cd4188c0599080f3e204b56a1d Mon Sep 17 00:00:00 2001 From: Ondrej Certik Date: Tue, 12 Aug 2008 15:29:31 +0200 Subject: [PATCH] sorting of arguments *is* necessary. --- sympy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sympy.py b/sympy.py index 6448116..f8d70f3 100644 --- a/sympy.py +++ b/sympy.py @@ -214,8 +214,7 @@ class Add(Basic): def __hash__(self): a = list(self.args[:]) - # XXX: for some reason, the the sorting below is *not* necessary. - #a.sort(key=hash) + a.sort(key=hash) return hash_seq(a) def expand(self): @@ -275,8 +274,7 @@ class Mul(Basic): def __hash__(self): a = list(self.args[:]) - # XXX: for some reason, the the sorting below is *not* necessary. - #a.sort(key=hash) + a.sort(key=hash) return hash_seq(a) def __eq__(self, o): -- 2.11.4.GIT