Skip to content

Commit

Permalink
PersistentHashWalkMapper: do not ignore comparison operator
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Sep 19, 2024
1 parent 11f55b2 commit 709d302
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pymbolic/mapper/persistent_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ def map_constant(self, expr):
expr = expr.item()

self.key_hash.update(repr(expr).encode("utf8"))

def map_comparison(self, expr):
if self.visit(expr):
self.rec(expr.left)
self.key_hash.update(repr(expr.operator).encode("utf8"))
self.rec(expr.right)

0 comments on commit 709d302

Please sign in to comment.