-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
To Reproduce
- Create a file: islpy_hash.py as:
import islpy as isl
a = isl.BasicSet("{[i,j]: 0<=i<=j<10}")
print(hash("hashing of islpy objects isn't Python compliant"))
print(hash(a))
print(hash(a))- Call it as
PYTHONHASHSEED=3 python islpy_hash.py.
Observed behavior
(py311_env) [line@line ~]$ PYTHONHASHSEED=3 python islpy_hash.py
-5820926828285319218
8778101896947
8778101896947
(py311_env) [line@line ~]$ PYTHONHASHSEED=3 python islpy_hash.py
-5820926828285319218
8727734557427
8727734557427
(py311_env) [line@line ~]$ PYTHONHASHSEED=3 python islpy_hash.py
-5820926828285319218
8787476382451
8787476382451Expected behavior
The message printed to stdout must be the same across interpreter runs.