Eryk Sun <[email protected]> added the comment:
> 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
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com