Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e9c90aa4
Commit
e9c90aa4
authored
Aug 24, 2019
by
Serhiy Storchaka
Committed by
GitHub
Aug 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269)
parent
4101181f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
Doc/reference/datamodel.rst
Doc/reference/datamodel.rst
+2
-2
Doc/using/cmdline.rst
Doc/using/cmdline.rst
+2
-2
Misc/python.man
Misc/python.man
+1
-1
Python/initconfig.c
Python/initconfig.c
+2
-2
No files found.
Doc/reference/datamodel.rst
View file @
e9c90aa4
...
...
@@ -1445,8 +1445,8 @@ Basic customization
.. note::
By default, the :meth:`__hash__` values of str
, bytes and datetim
e
objects are
"salted" with an unpredictable random value. Although they
By default, the :meth:`__hash__` values of str
and bytes objects ar
e
"salted" with an unpredictable random value. Although they
remain constant within an individual Python process, they are not
predictable between repeated invocations of Python.
...
...
Doc/using/cmdline.rst
View file @
e9c90aa4
...
...
@@ -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
...
...
Misc/python.man
View file @
e9c90aa4
...
...
@@ -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
...
...
Python/initconfig.c
View file @
e9c90aa4
...
...
@@ -83,8 +83,8 @@ static const char usage_5[] =
"PYTHONFAULTHANDLER: dump the Python traceback on fatal errors.
\n
"
;
static
const
char
usage_6
[]
=
"PYTHONHASHSEED: if this variable is set to 'random', a random value is used
\n
"
" to seed the hashes of str
, bytes and datetime objects. It can also be
\n
"
"
set to an
integer in the range [0,4294967295] to get hash values with a
\n
"
" to seed the hashes of str
and bytes objects. It can also be set to an
\n
"
" integer in the range [0,4294967295] to get hash values with a
\n
"
" predictable seed.
\n
"
"PYTHONMALLOC: set the Python memory allocators and/or install debug hooks
\n
"
" on Python memory allocators. Use PYTHONMALLOC=debug to install debug
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment