]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-89905: Correct `-R` option doc (GH-137608) (#138353)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Sep 2025 15:08:12 +0000 (17:08 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 15:08:12 +0000 (18:08 +0300)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/using/cmdline.rst

index cad49e2deeb46f8acf95e2427da2e31b3a63fd71..448f2725e9a3dbee9258c44fd2d52a2a102c58b0 100644 (file)
@@ -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