From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 1 Sep 2025 17:58:25 +0000 (+0100) Subject: gh-89905: Correct `-R` option doc (#137608) X-Git-Tag: v3.15.0a1~545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3ff3165d2c935fdda7c5bb1e69314372e1cf84c;p=thirdparty%2FPython%2Fcpython.git gh-89905: Correct `-R` option doc (#137608) --- diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index cad49e2deeb4..448f2725e9a3 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -369,8 +369,8 @@ Miscellaneous options .. option:: -R Turn on hash randomization. This option only has an effect if the - :envvar:`PYTHONHASHSEED` environment variable is set to ``0``, since hash - randomization is enabled by default. + :envvar:`PYTHONHASHSEED` environment variable is set to anything other + than ``random``, since hash randomization is enabled by default. On previous versions of Python, this option turns on hash randomization, so that the :meth:`~object.__hash__` values of str and bytes objects