From 9a147ba2dc097b3ed13b8818b5b78c34b5cfb18f Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Wed, 22 Aug 2018 15:08:24 +0200
Subject: [PATCH] Bugfix in Field.Access

- hash function was not correctly implemented
- sometimes this caused a bug where latex version was not correctly displayed
---
 field.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/field.py b/field.py
index 632c454be..47cd0955c 100644
--- a/field.py
+++ b/field.py
@@ -586,7 +586,7 @@ class Field:
 
         def _hashable_content(self):
             super_class_contents = list(super(Field.Access, self)._hashable_content())
-            t = tuple(super_class_contents + [hash(self._field), self._index] + self._offsets)
+            t = tuple(super_class_contents + [id(self._field), self._index] + self._offsets)
             return t
 
         def _latex(self, _):
-- 
GitLab