[issue45742] python -h can't find -R option

2021-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you two agree on an exact wording, I can make the PR and backport. -- ___ Python tracker ___ _

[issue45742] python -h can't find -R option

2021-11-14 Thread Eryk Sun
Eryk Sun added the comment: How about this? Enable hash randomization. This option overrides PYTHONHASHSEED to use the default behavior. -- ___ Python tracker ___ ___

[issue45742] python -h can't find -R option

2021-11-14 Thread STINNER Victor
STINNER Victor added the comment: If I understand correctly https://docs.python.org/3.10/using/cmdline.html#cmdoption-R "This option only has an effect if the PYTHONHASHSEED environment variable is set to 0" should be replaced with: "This option only has an effect if the PYTHONHASHSEED env

[issue45742] python -h can't find -R option

2021-11-12 Thread Eryk Sun
Eryk Sun 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

[issue45742] python -h can't find -R option

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: > 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-

[issue45742] python -h can't find -R option

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, A sentence about hash randomization you wrote for #32329 in PR-4873 is not currently correct. Change code or doc? -- nosy: +terry.reedy, vstinner ___ Python tracker __

[issue45742] python -h can't find -R option

2021-11-07 Thread Eryk Sun
Eryk Sun added the comment: Either the documentation [1] or the behavior needs to be fixed. The following statement is false: Turn on hash randomization. This option only has an effect if the PYTHONHASHSEED environment variable is set to 0, since hash randomization is enabled by d

[issue45742] python -h can't find -R option

2021-11-07 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue45742] python -h can't find -R option

2021-11-07 Thread Eryk Sun
Eryk Sun added the comment: Apparently -R is still implemented in Python 3, even though hash randomization is enabled by default now. Unlike Python 2, in Python 3 -R overrides the PYTHONHASHSEED environment variable, making it effectively the same as "PYTHONHASHSEED=random". For example: Py

[issue45742] python -h can't find -R option

2021-11-06 Thread jiahua wang
New submission from jiahua wang : I input python -h on the command line, and I can't find any -R option. -- assignee: docs@python components: Documentation messages: 405891 nosy: 180909, docs@python priority: normal severity: normal status: open title: python -h can't find -R option ve