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 <>
> 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:

> 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:

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

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