]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-89905: Correct `-R` option doc (GH-137608) (#138354)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Sep 2025 18:05:26 +0000 (20:05 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Sep 2025 18:05:26 +0000 (18:05 +0000)
gh-89905: Correct `-R` option doc (GH-137608)
(cherry picked from commit b3ff3165d2c935fdda7c5bb1e69314372e1cf84c)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/using/cmdline.rst

index 7f0ea220de6f52f1d5ac8af3c4ac75d32c547765..762579abeaf927c1884b47d861aced1b3a801ef1 100644 (file)
@@ -366,8 +366,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