Message406259
> Which doc is wrong?
Currently -R overrides a non-zero seed value in PYTHONHASHSEED. The behavior changed in 3.7. Either the docs or the behavior need to be fixed. To repeat my previous example (this time in Windows):
C:\>set PYTHONHASHSEED=37
C:\>py -3.6 -c "print(hash('spam'))"
-1810080452065497889
C:\>py -3.6 -Rc "print(hash('spam'))"
-1810080452065497889
C:\>py -3.7 -c "print(hash('spam'))"
-1810080452065497889
C:\>py -3.7 -Rc "print(hash('spam'))"
-7199637890859510937
C:\>py -3.10 -Rc "print(hash('spam'))"
7684061207513636658 |
|
Date |
User |
Action |
Args |
2021-11-13 00:09:25 | eryksun | set | recipients:
+ eryksun, terry.reedy, vstinner, docs@python |
2021-11-13 00:09:25 | eryksun | set | messageid: <1636762165.3.0.993028791724.issue45742@roundup.psfhosted.org> |
2021-11-13 00:09:25 | eryksun | link | issue45742 messages |
2021-11-13 00:09:25 | eryksun | create | |
|