Skip to content
Snippets Groups Projects
Commit 9a147ba2 authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix in Field.Access

- hash function was not correctly implemented
- sometimes this caused a bug where latex version was not correctly displayed
parent d5a8952f
No related merge requests found
...@@ -586,7 +586,7 @@ class Field: ...@@ -586,7 +586,7 @@ class Field:
def _hashable_content(self): def _hashable_content(self):
super_class_contents = list(super(Field.Access, self)._hashable_content()) 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 return t
def _latex(self, _): def _latex(self, _):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment