gh-89905: Correct -R option doc (#137608)

This commit is contained in:
Stan Ulbrych 2025-09-01 18:58:25 +01:00 committed by GitHub
parent ea77feecbb
commit b3ff3165d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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