From d97dcac0f044829c3faedd7e3f70f68860887444 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 19 Oct 2015 00:22:09 -0500
Subject: [PATCH] Py3 fixes

---
 grudge/symbolic/compiler.py | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/grudge/symbolic/compiler.py b/grudge/symbolic/compiler.py
index cfbec3c3..d1b186e2 100644
--- a/grudge/symbolic/compiler.py
+++ b/grudge/symbolic/compiler.py
@@ -50,6 +50,15 @@ class Instruction(Record):
     def get_executor_method(self, executor):
         raise NotImplementedError
 
+    def __hash__(self):
+        return id(self)
+
+    def __eq__(self, other):
+        return self is other
+
+    def __ne__(self, other):
+        return not self.__eq__(other)
+
 
 @memoize
 def _make_dep_mapper(include_subscripts):
@@ -286,7 +295,9 @@ class FluxExchangeBatchAssign(Instruction):
 
 
 class VectorExprAssign(Assign):
-    __slots__ = ["compiled"]
+    """
+    .. attribute:: compiled
+    """
 
     def get_executor_method(self, executor):
         return executor.exec_vector_expr_assign
-- 
GitLab