[3.8] bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269) by miss-islington · Pull Request #15454 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
4 changes: 2 additions & 2 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Miscellaneous options
randomization is enabled by default.

On previous versions of Python, this option turns on hash randomization,
so that the :meth:`__hash__` values of str, bytes and datetime
so that the :meth:`__hash__` values of str and bytes objects
are "salted" with an unpredictable random value. Although they remain
constant within an individual Python process, they are not predictable
between repeated invocations of Python.
Expand Down Expand Up @@ -618,7 +618,7 @@ conflict.
.. envvar:: PYTHONHASHSEED

If this variable is not set or set to ``random``, a random value is used
to seed the hashes of str, bytes and datetime objects.
to seed the hashes of str and bytes objects.

If :envvar:`PYTHONHASHSEED` is set to an integer value, it is used as a fixed
seed for generating the hash() of the types covered by the hash
Expand Down
2 changes: 1 addition & 1 deletion Misc/python.man
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ If this is set to a comma-separated string it is equivalent to
specifying the \fB\-W\fP option for each separate value.
.IP PYTHONHASHSEED
If this variable is set to "random", a random value is used to seed the hashes
of str, bytes and datetime objects.
of str and bytes objects.

If PYTHONHASHSEED is set to an integer value, it is used as a fixed seed for
generating the hash() of the types covered by the hash randomization. Its
Expand Down
4 changes: 2 additions & 2 deletions Python/initconfig.c