Closed alexfikl closed 3 months ago
Seems like there was a numpy int that snuck in there and something changed about its hash in 2.0.
EDIT: It was actually this: the repr for an np.int64(3) changed from '3' to 'np.int64(3)'
np.int64(3)
'3'
'np.int64(3)'
def map_constant(self, expr): self.key_hash.update(repr(expr).encode("utf8"))
Should the PersistentHashWalkMapper be changed instead?
PersistentHashWalkMapper
Thanks for tracking down what caused this! Yes, the PersistentHashWalkMapper should be fixed. I've done that in #142. Closing here.
Seems like there was a numpy int that snuck in there and something changed about its hash in 2.0.
EDIT: It was actually this: the repr for an
np.int64(3)
changed from'3'
to'np.int64(3)'
Should the
PersistentHashWalkMapper
be changed instead?