[3.13] gh-89905: Correct -R option doc (GH-137608) (#138354)

gh-89905: Correct `-R` option doc (GH-137608)
(cherry picked from commit b3ff3165d2)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-09-01 20:05:26 +02:00 committed by GitHub
parent 76aa2abdef
commit 406a81fc32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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