STINNER Victor <vstin...@python.org> 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-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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to