diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-08-24 09:49:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-24 09:49:27 (GMT) |
commit | e9c90aa43144b0be1e4e393e8cb549573437a5da (patch) | |
tree | 1fc04aa51f0834dc8fa9d6c4a4790e4d981aceab /Doc/using | |
parent | 4101181fd87c2fab6456663d3c8cc99377cf0463 (diff) | |
download | cpython-e9c90aa43144b0be1e4e393e8cb549573437a5da.zip cpython-e9c90aa43144b0be1e4e393e8cb549573437a5da.tar.gz cpython-e9c90aa43144b0be1e4e393e8cb549573437a5da.tar.bz2 |
bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269)
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/cmdline.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 22f42d9..d04c3b6 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -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. @@ -625,7 +625,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 |