Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2135)

Side by Side Diff: Misc/python.man

Issue 13703: Hash collision security issue
Patch Set: Created 1 year, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Misc/NEWS ('k') | Modules/datetimemodule.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .TH PYTHON "1" "$Date$" 1 .TH PYTHON "1" "$Date$"
2 2
3 .\" To view this file while editing, run it through groff: 3 .\" To view this file while editing, run it through groff:
4 .\" groff -Tascii -man python.man | less 4 .\" groff -Tascii -man python.man | less
5 5
6 .SH NAME 6 .SH NAME
7 python \- an interpreted, interactive, object-oriented programming language 7 python \- an interpreted, interactive, object-oriented programming language
8 .SH SYNOPSIS 8 .SH SYNOPSIS
9 .B python 9 .B python
10 [ 10 [
(...skipping 14 matching lines...) Expand all
25 [ 25 [
26 .B \-m 26 .B \-m
27 .I module-name 27 .I module-name
28 ] 28 ]
29 .br 29 .br
30 [ 30 [
31 .B \-O 31 .B \-O
32 ] 32 ]
33 [ 33 [
34 .B \-OO 34 .B \-OO
35 ]
36 [
37 .B \-R
35 ] 38 ]
36 [ 39 [
37 .B -Q 40 .B -Q
38 .I argument 41 .I argument
39 ] 42 ]
40 [ 43 [
41 .B \-s 44 .B \-s
42 ] 45 ]
43 [ 46 [
44 .B \-S 47 .B \-S
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 file as a script. 140 file as a script.
138 .TP 141 .TP
139 .B \-O 142 .B \-O
140 Turn on basic optimizations. This changes the filename extension for 143 Turn on basic optimizations. This changes the filename extension for
141 compiled (bytecode) files from 144 compiled (bytecode) files from
142 .I .pyc 145 .I .pyc
143 to \fI.pyo\fP. Given twice, causes docstrings to be discarded. 146 to \fI.pyo\fP. Given twice, causes docstrings to be discarded.
144 .TP 147 .TP
145 .B \-OO 148 .B \-OO
146 Discard docstrings in addition to the \fB-O\fP optimizations. 149 Discard docstrings in addition to the \fB-O\fP optimizations.
150 .TP
151 .B \-R
152 Turn on "hash randomization", so that the hash() values of str, bytes and
153 datetime objects are "salted" with an unpredictable pseudo-random value.
154 Although they remain constant within an individual Python process, they are
155 not predictable between repeated invocations of Python.
156 .IP
157 This is intended to provide protection against a denial of service
158 caused by carefully-chosen inputs that exploit the worst case performance
159 of a dict lookup, O(n^2) complexity. See
160 http://www.ocert.org/advisories/ocert-2011-003.html
161 for details.
147 .TP 162 .TP
148 .BI "\-Q " argument 163 .BI "\-Q " argument
149 Division control; see PEP 238. The argument must be one of "old" (the 164 Division control; see PEP 238. The argument must be one of "old" (the
150 default, int/int and long/long return an int or long), "new" (new 165 default, int/int and long/long return an int or long), "new" (new
151 division semantics, i.e. int/int and long/long returns a float), 166 division semantics, i.e. int/int and long/long returns a float),
152 "warn" (old division semantics with a warning for int/int and 167 "warn" (old division semantics with a warning for int/int and
153 long/long), or "warnall" (old division semantics with a warning for 168 long/long), or "warnall" (old division semantics with a warning for
154 all use of the division operator). For a use of "warnall", see the 169 all use of the division operator). For a use of "warnall", see the
155 Tools/scripts/fixdiv.py script. 170 Tools/scripts/fixdiv.py script.
156 .TP 171 .TP
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 .IP PYTHONNOUSERSITE 411 .IP PYTHONNOUSERSITE
397 If this is set to a non-empty string it is equivalent to specifying the 412 If this is set to a non-empty string it is equivalent to specifying the
398 \fB\-s\fP option (Don't add the user site directory to sys.path). 413 \fB\-s\fP option (Don't add the user site directory to sys.path).
399 .IP PYTHONUNBUFFERED 414 .IP PYTHONUNBUFFERED
400 If this is set to a non-empty string it is equivalent to specifying 415 If this is set to a non-empty string it is equivalent to specifying
401 the \fB\-u\fP option. 416 the \fB\-u\fP option.
402 .IP PYTHONVERBOSE 417 .IP PYTHONVERBOSE
403 If this is set to a non-empty string it is equivalent to specifying 418 If this is set to a non-empty string it is equivalent to specifying
404 the \fB\-v\fP option. If set to an integer, it is equivalent to 419 the \fB\-v\fP option. If set to an integer, it is equivalent to
405 specifying \fB\-v\fP multiple times. 420 specifying \fB\-v\fP multiple times.
421 .IP PYTHONHASHRANDOMIZATION
422 If this is set to a non-empty string it is equivalent to specifying the
423 \fB\-R\fP option.
424 .IP PYTHONHASHSEED
425 If this is set, it is used as a fixed seed for generating the hash() of
426 the types covered by the \fB\-R\fP (or its equivalent environment variable,
427 \fB\PYTHONHASHRANDOMIZATION\fP).
428 It is primarily intended for use in selftests for the interpreter, but
429 may perhaps be of use for reproducing a specific dict ordering.
430 It should be a decimal number in the range [0; 4294967295]. Specifying
431 the value 0 overrides the other setting, disabling the hash random salt.
406 .SH AUTHOR 432 .SH AUTHOR
407 The Python Software Foundation: http://www.python.org/psf 433 The Python Software Foundation: http://www.python.org/psf
408 .SH INTERNET RESOURCES 434 .SH INTERNET RESOURCES
409 Main website: http://www.python.org/ 435 Main website: http://www.python.org/
410 .br 436 .br
411 Documentation: http://docs.python.org/py3k/ 437 Documentation: http://docs.python.org/py3k/
412 .br 438 .br
413 Developer resources: http://www.python.org/dev/ 439 Developer resources: http://www.python.org/dev/
414 .br 440 .br
415 Downloads: http://python.org/download/ 441 Downloads: http://python.org/download/
416 .br 442 .br
417 Module repository: http://pypi.python.org/ 443 Module repository: http://pypi.python.org/
418 .br 444 .br
419 Newsgroups: comp.lang.python, comp.lang.python.announce 445 Newsgroups: comp.lang.python, comp.lang.python.announce
420 .SH LICENSING 446 .SH LICENSING
421 Python is distributed under an Open Source license. See the file 447 Python is distributed under an Open Source license. See the file
422 "LICENSE" in the Python source distribution for information on terms & 448 "LICENSE" in the Python source distribution for information on terms &
423 conditions for accessing and otherwise using Python and for a 449 conditions for accessing and otherwise using Python and for a
424 DISCLAIMER OF ALL WARRANTIES. 450 DISCLAIMER OF ALL WARRANTIES.
OLDNEW
« no previous file with comments | « Misc/NEWS ('k') | Modules/datetimemodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7