This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients docs@python, eryksun, terry.reedy, vstinner
Date 2021-11-13.00:09:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636762165.3.0.993028791724.issue45742@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2021-11-13 00:09:25eryksunsetrecipients: + eryksun, terry.reedy, vstinner, docs@python
2021-11-13 00:09:25eryksunsetmessageid: <1636762165.3.0.993028791724.issue45742@roundup.psfhosted.org>
2021-11-13 00:09:25eryksunlinkissue45742 messages
2021-11-13 00:09:25eryksuncreate