From f5768842440432d50d3e34dfe824ef6acb304ecb Mon Sep 17 00:00:00 2001 From: Jens Bouman Date: Sat, 9 May 2020 16:19:20 +0200 Subject: [PATCH] Additional comment --- interpreter/dataStructures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/dataStructures.py b/interpreter/dataStructures.py index eed1612..b79569c 100644 --- a/interpreter/dataStructures.py +++ b/interpreter/dataStructures.py @@ -19,7 +19,6 @@ class position(): def __deepcopy__(self, memodict): return position(copy.deepcopy(self.coords)) - # Functions to allow this datatype to behave in sets def __hash__(self): return hash(self.coords) @@ -75,6 +74,7 @@ class codel(): # Functions to allow this datatype to behave in sets def __hash__(self): + # Return a hash of a frozenset, because a normal set can't be hashed return hash(frozenset(self.codel)) def __eq__(self, other):