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 vstinner
Recipients docs@python, eryksun, terry.reedy, vstinner
Date 2021-11-12.23:16:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636758972.76.0.558826275232.issue45742@roundup.psfhosted.org>
In-reply-to
Content
> I input python -h on the command line, and I can't find any -R option.

If you want to document it, the "usage" is in Python/initconfig.c. See also the -R option. My notes on adding a command line option:
https://pythondev.readthedocs.io/pyconfig.html#add-a-new-command-line-option

> Victor, A sentence about hash randomization you wrote for #32329 in PR-4873 is not currently correct.  Change code or doc?

In Python/initconfig.c, the -R option sets config->use_hash_seed to 0. It overrides PYTHONHASHSEED env var, as documented at:
https://docs.python.org/3.10/using/cmdline.html#cmdoption-R

IMO it's the expected behavior. Cmd line must have the priority over env vars.

Which doc is wrong?
History
Date User Action Args
2021-11-12 23:16:12vstinnersetrecipients: + vstinner, terry.reedy, docs@python, eryksun
2021-11-12 23:16:12vstinnersetmessageid: <1636758972.76.0.558826275232.issue45742@roundup.psfhosted.org>
2021-11-12 23:16:12vstinnerlinkissue45742 messages
2021-11-12 23:16:12vstinnercreate