embray / gappy

Python interface to GAP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement better hashing

embray opened this issue · comments

Currently all GapObjs are hashed simply by calling hash(str(self)) which can be both slow, and lead to surprising hash collisions.

In particular it would be nice if GapIntegers had the same hash value as Python/Sage integers. See https://trac.sagemath.org/ticket/30498