pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python27 Changes 2.7.3:
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ec33eb9b00f
branches: trunk
changeset: 602409:3ec33eb9b00f
user: adam <adam%pkgsrc.org@localhost>
date: Fri Apr 13 18:47:27 2012 +0000
description:
Changes 2.7.3:
* An ordered dictionary type
* New unittest features including test skipping, new assert methods, and test
discovery
* A much faster io module
* Automatic numbering of fields in the str.format() method
* Float repr improvements backported from 3.x
* Tile support for Tkinter
* A backport of the memoryview object from 3.x
* Set literals
* Set and dictionary comprehensions
* Dictionary views
* New syntax for nested with statements
* The sysconfig module
diffstat:
lang/python27/Makefile | 5 +-
lang/python27/PLIST.common | 18 +-
lang/python27/dist.mk | 4 +-
lang/python27/distinfo | 47 +-
lang/python27/patches/patch-CVE-2012-0845 | 18 -
lang/python27/patches/patch-CVE-2012-1150-Doc_library_sys.rst | 16 -
lang/python27/patches/patch-CVE-2012-1150-Doc_reference_datamodel.rst | 17 -
lang/python27/patches/patch-CVE-2012-1150-Doc_using_cmdline.rst | 75 -
lang/python27/patches/patch-CVE-2012-1150-Include_object.h | 21 -
lang/python27/patches/patch-CVE-2012-1150-Include_pydebug.h | 16 -
lang/python27/patches/patch-CVE-2012-1150-Include_pythonrun.h | 17 -
lang/python27/patches/patch-CVE-2012-1150-Lib_os.py | 31 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_cmd_line.py | 29 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_compiler.py | 19 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_hash.py | 129 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_os.py | 67 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_set.py | 73 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_support.py | 19 -
lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_sys.py | 17 -
lang/python27/patches/patch-CVE-2012-1150-Misc_NEWS | 20 -
lang/python27/patches/patch-CVE-2012-1150-Misc_python.man | 58 -
lang/python27/patches/patch-CVE-2012-1150-Modules_main.c | 59 -
lang/python27/patches/patch-CVE-2012-1150-Modules_posixmodule.c | 165 -
lang/python27/patches/patch-CVE-2012-1150-Objects_bufferobject.c | 30 -
lang/python27/patches/patch-CVE-2012-1150-Objects_object.c | 17 -
lang/python27/patches/patch-CVE-2012-1150-Objects_stringobject.c | 31 -
lang/python27/patches/patch-CVE-2012-1150-Objects_unicodeobject.c | 31 -
lang/python27/patches/patch-CVE-2012-1150-PCbuild_pythoncore.vcproj | 1840 ----------
lang/python27/patches/patch-CVE-2012-1150-Python_pythonrun.c | 37 -
lang/python27/patches/patch-CVE-2012-1150-Python_random.c | 311 -
lang/python27/patches/patch-CVE-2012-1150-Python_sysmodule.c | 36 -
lang/python27/patches/patch-ab | 4 +-
lang/python27/patches/patch-al | 25 +-
lang/python27/patches/patch-ao | 4 +-
lang/python27/patches/patch-au | 26 +-
lang/python27/patches/patch-ax | 4 +-
lang/python27/patches/patch-az | 4 +-
37 files changed, 47 insertions(+), 3293 deletions(-)
diffs (truncated from 3627 to 300 lines):
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/Makefile
--- a/lang/python27/Makefile Fri Apr 13 14:19:17 2012 +0000
+++ b/lang/python27/Makefile Fri Apr 13 18:47:27 2012 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2012/03/24 12:04:36 tron Exp $
+# $NetBSD: Makefile,v 1.15 2012/04/13 18:47:27 adam Exp $
.include "dist.mk"
PKGNAME= python27-${PY_DISTVERSION}
-PKGREVISION= 3
CATEGORIES= lang python
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
@@ -76,7 +75,7 @@
PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
.if ${PY_PLATNAME} == "linux2"
-PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.Linux2
+PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.Linux2
.endif
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/PLIST.common
--- a/lang/python27/PLIST.common Fri Apr 13 14:19:17 2012 +0000
+++ b/lang/python27/PLIST.common Fri Apr 13 18:47:27 2012 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.2 2011/06/13 11:31:13 obache Exp $
+@comment $NetBSD: PLIST.common,v 1.3 2012/04/13 18:47:27 adam Exp $
bin/2to3-${PY_VER_SUFFIX}
bin/pydoc${PY_VER_SUFFIX}
bin/python${PY_VER_SUFFIX}
@@ -904,6 +904,7 @@
lib/python${PY_VER_SUFFIX}/distutils/tests/test_versionpredicate.py
lib/python${PY_VER_SUFFIX}/distutils/tests/test_versionpredicate.pyc
lib/python${PY_VER_SUFFIX}/distutils/tests/test_versionpredicate.pyo
+lib/python${PY_VER_SUFFIX}/distutils/tests/xxmodule.c
lib/python${PY_VER_SUFFIX}/distutils/text_file.py
lib/python${PY_VER_SUFFIX}/distutils/text_file.pyc
lib/python${PY_VER_SUFFIX}/distutils/text_file.pyo
@@ -2601,6 +2602,10 @@
lib/python${PY_VER_SUFFIX}/test/cjkencodings/gbk.txt
lib/python${PY_VER_SUFFIX}/test/cjkencodings/hz-utf8.txt
lib/python${PY_VER_SUFFIX}/test/cjkencodings/hz.txt
+lib/python${PY_VER_SUFFIX}/test/cjkencodings/iso2022_jp-utf8.txt
+lib/python${PY_VER_SUFFIX}/test/cjkencodings/iso2022_jp.txt
+lib/python${PY_VER_SUFFIX}/test/cjkencodings/iso2022_kr-utf8.txt
+lib/python${PY_VER_SUFFIX}/test/cjkencodings/iso2022_kr.txt
lib/python${PY_VER_SUFFIX}/test/cjkencodings/johab-utf8.txt
lib/python${PY_VER_SUFFIX}/test/cjkencodings/johab.txt
lib/python${PY_VER_SUFFIX}/test/cjkencodings/shift_jis-utf8.txt
@@ -2794,6 +2799,7 @@
lib/python${PY_VER_SUFFIX}/test/mapping_tests.pyc
lib/python${PY_VER_SUFFIX}/test/mapping_tests.pyo
lib/python${PY_VER_SUFFIX}/test/math_testcases.txt
+lib/python${PY_VER_SUFFIX}/test/nokia.pem
lib/python${PY_VER_SUFFIX}/test/nullcert.pem
lib/python${PY_VER_SUFFIX}/test/outstanding_bugs.py
lib/python${PY_VER_SUFFIX}/test/outstanding_bugs.pyc
@@ -2822,9 +2828,6 @@
lib/python${PY_VER_SUFFIX}/test/re_tests.py
lib/python${PY_VER_SUFFIX}/test/re_tests.pyc
lib/python${PY_VER_SUFFIX}/test/re_tests.pyo
-lib/python${PY_VER_SUFFIX}/test/regex_tests.py
-lib/python${PY_VER_SUFFIX}/test/regex_tests.pyc
-lib/python${PY_VER_SUFFIX}/test/regex_tests.pyo
lib/python${PY_VER_SUFFIX}/test/regrtest.py
lib/python${PY_VER_SUFFIX}/test/regrtest.pyc
lib/python${PY_VER_SUFFIX}/test/regrtest.pyo
@@ -2856,7 +2859,6 @@
lib/python${PY_VER_SUFFIX}/test/subprocessdata/sigchild_ignore.py
lib/python${PY_VER_SUFFIX}/test/subprocessdata/sigchild_ignore.pyc
lib/python${PY_VER_SUFFIX}/test/subprocessdata/sigchild_ignore.pyo
-lib/python${PY_VER_SUFFIX}/test/svn_python_org_https_cert.pem
lib/python${PY_VER_SUFFIX}/test/test_MimeWriter.py
lib/python${PY_VER_SUFFIX}/test/test_MimeWriter.pyc
lib/python${PY_VER_SUFFIX}/test/test_MimeWriter.pyo
@@ -3025,6 +3027,9 @@
lib/python${PY_VER_SUFFIX}/test/test_codecencodings_hk.py
lib/python${PY_VER_SUFFIX}/test/test_codecencodings_hk.pyc
lib/python${PY_VER_SUFFIX}/test/test_codecencodings_hk.pyo
+lib/python${PY_VER_SUFFIX}/test/test_codecencodings_iso2022.py
+lib/python${PY_VER_SUFFIX}/test/test_codecencodings_iso2022.pyc
+lib/python${PY_VER_SUFFIX}/test/test_codecencodings_iso2022.pyo
lib/python${PY_VER_SUFFIX}/test/test_codecencodings_jp.py
lib/python${PY_VER_SUFFIX}/test/test_codecencodings_jp.pyc
lib/python${PY_VER_SUFFIX}/test/test_codecencodings_jp.pyo
@@ -3654,6 +3659,9 @@
lib/python${PY_VER_SUFFIX}/test/test_py3kwarn.py
lib/python${PY_VER_SUFFIX}/test/test_py3kwarn.pyc
lib/python${PY_VER_SUFFIX}/test/test_py3kwarn.pyo
+lib/python${PY_VER_SUFFIX}/test/test_py_compile.py
+lib/python${PY_VER_SUFFIX}/test/test_py_compile.pyc
+lib/python${PY_VER_SUFFIX}/test/test_py_compile.pyo
lib/python${PY_VER_SUFFIX}/test/test_pyclbr.py
lib/python${PY_VER_SUFFIX}/test/test_pyclbr.pyc
lib/python${PY_VER_SUFFIX}/test/test_pyclbr.pyo
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/dist.mk
--- a/lang/python27/dist.mk Fri Apr 13 14:19:17 2012 +0000
+++ b/lang/python27/dist.mk Fri Apr 13 18:47:27 2012 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: dist.mk,v 1.2 2011/06/13 11:31:13 obache Exp $
+# $NetBSD: dist.mk,v 1.3 2012/04/13 18:47:27 adam Exp $
-PY_DISTVERSION= 2.7.2
+PY_DISTVERSION= 2.7.3
DISTNAME= Python-${PY_DISTVERSION}
EXTRACT_SUFX= .tar.bz2
DISTINFO_FILE= ${.CURDIR}/../../lang/python27/distinfo
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/distinfo
--- a/lang/python27/distinfo Fri Apr 13 14:19:17 2012 +0000
+++ b/lang/python27/distinfo Fri Apr 13 18:47:27 2012 +0000
@@ -1,50 +1,23 @@
-$NetBSD: distinfo,v 1.17 2012/03/27 10:49:22 obache Exp $
+$NetBSD: distinfo,v 1.18 2012/04/13 18:47:27 adam Exp $
-SHA1 (Python-2.7.2.tar.bz2) = 417bdeea77abfaf1b9257fc6b4a04aaa209f4547
-RMD160 (Python-2.7.2.tar.bz2) = c3bf4f09b7c429a4d9f4cc251c795304cd5232c5
-Size (Python-2.7.2.tar.bz2) = 11754834 bytes
-SHA1 (patch-CVE-2012-0845) = 1c0a8d7224b6b5cb65b24d38ac0967f8f8fb2da9
-SHA1 (patch-CVE-2012-1150-Doc_library_sys.rst) = 8580d187abaed9dce948988e50749be7527ee0f8
-SHA1 (patch-CVE-2012-1150-Doc_reference_datamodel.rst) = f145207d4cc32643e78fcac9d204089406dc96fe
-SHA1 (patch-CVE-2012-1150-Doc_using_cmdline.rst) = fadd6f4822219adccd2268fd1fd0bf2bc330c994
-SHA1 (patch-CVE-2012-1150-Include_object.h) = 18559b16c80e08b8df62bb5c06a34c92105e56d9
-SHA1 (patch-CVE-2012-1150-Include_pydebug.h) = f71040bfbf930384c1fd4f3258c89e86259e7a52
-SHA1 (patch-CVE-2012-1150-Include_pythonrun.h) = cd8b8dfd673a81b231f1a35074ec73aba3c999ce
-SHA1 (patch-CVE-2012-1150-Lib_os.py) = b7217bb7c7a3aeb974e65754f4314e76d65e0e12
-SHA1 (patch-CVE-2012-1150-Lib_test_test_cmd_line.py) = e55f48b43a4d41d05e2aa2b40f1a4f43d0d99eb9
-SHA1 (patch-CVE-2012-1150-Lib_test_test_compiler.py) = 27186659371dacee553a2fc9065db639f3336425
-SHA1 (patch-CVE-2012-1150-Lib_test_test_hash.py) = 8107307dc1bd6516280c464e631cf811e0cd59b4
-SHA1 (patch-CVE-2012-1150-Lib_test_test_os.py) = c3724a7346e3fc8d3003bd26a0556668b0896f5c
-SHA1 (patch-CVE-2012-1150-Lib_test_test_set.py) = a19cfff0a38411a19aadc4294b6f24deabaa4aab
-SHA1 (patch-CVE-2012-1150-Lib_test_test_support.py) = f635d3135f9a3e3387f6a2e6e00b054969f78d3c
-SHA1 (patch-CVE-2012-1150-Lib_test_test_sys.py) = 887f1f50b5e6102e334a73a451211addb9d4263a
-SHA1 (patch-CVE-2012-1150-Misc_NEWS) = 807b7bb73542861262890ea0a57dd13e193042ab
-SHA1 (patch-CVE-2012-1150-Misc_python.man) = d89d9258a4dad8de5a22e8625df03d6da34ea92c
-SHA1 (patch-CVE-2012-1150-Modules_main.c) = b79a20d671062039ba580921cfa1f06634cca135
-SHA1 (patch-CVE-2012-1150-Modules_posixmodule.c) = 1a252303f6adc29150e0a109f78ceb1a54bbc28d
-SHA1 (patch-CVE-2012-1150-Objects_bufferobject.c) = 383878c6b8767b3cce7a9b83890f8f79d1deac94
-SHA1 (patch-CVE-2012-1150-Objects_object.c) = bd134011028c0c73d95007878ad16499a3125a98
-SHA1 (patch-CVE-2012-1150-Objects_stringobject.c) = 6efc29891d04fd0112d88ce2898ef2bdd5f47718
-SHA1 (patch-CVE-2012-1150-Objects_unicodeobject.c) = 499b80ed541b49dfb3fbf49c2a18b30f89703f2c
-SHA1 (patch-CVE-2012-1150-PCbuild_pythoncore.vcproj) = 17277d7d82a10cd32c9cb35510a8c76f620536ed
-SHA1 (patch-CVE-2012-1150-Python_pythonrun.c) = 8ae9796a18145d3d6261aad1390ede9ab4c6d6c9
-SHA1 (patch-CVE-2012-1150-Python_random.c) = 71c4bcc6e781240ad91b1679c9790e77b770eeb9
-SHA1 (patch-CVE-2012-1150-Python_sysmodule.c) = cb14822430f9dcbaf34c10b211065cb9f244d963
+SHA1 (Python-2.7.3.tar.bz2) = 842c4e2aff3f016feea3c6e992c7fa96e49c9aa0
+RMD160 (Python-2.7.3.tar.bz2) = bfc511d54080898d7008d4b84d49f957859d66c3
+Size (Python-2.7.3.tar.bz2) = 11793433 bytes
SHA1 (patch-Mac_Modules_fm___Fmmodule.c) = b9314bccb51b4fe672b81559068f7a79d2965f94
SHA1 (patch-Mac_Modules_qd___Qdmodule.c) = 45c748b15b9436d45ba137460389638aa7108c8d
SHA1 (patch-Mac_Modules_qdoffs___Qdoffsmodule.c) = 9994f0c1a908f18f1f3df3f05b184f082c018365
SHA1 (patch-aa) = 990e4025bb6a37715e1f5df1831499f0ab08acfa
-SHA1 (patch-ab) = 8c44f60d9ed0babb107bc4643b0437e2dd55d03a
+SHA1 (patch-ab) = 0d0ae9802dfe3b85659adb16793affd8c4ffce43
SHA1 (patch-ad) = de730b9f5a5efb56afa8bed05824b5f6579242ec
SHA1 (patch-ae) = ff6d8c6164fe3c6dc4fb33d88eb8a49d5c5442f6
SHA1 (patch-ah) = 8e9ee44c7a054f1387b6d8ef8dbe9c1b8dc8d891
-SHA1 (patch-al) = 2e72dcb429a368a0241ecb188dc01d68e2d9e530
+SHA1 (patch-al) = 9c6d0837e5c5b4e79285ed83966e6bab9d22d6f8
SHA1 (patch-am) = f56a53eb9f4694913d317c09e162bdd413f8f38f
SHA1 (patch-an) = 6098fbf0fc31422196cc40d3a227934523db11ca
-SHA1 (patch-ao) = 9996a444fc0034c9f01fd18f4ad7bf714a8c8d04
-SHA1 (patch-au) = 15b30cb5c77d2916538a390d9a08c0675ac01970
+SHA1 (patch-ao) = e14c3ddb136611835905fbe13c0b7ea2df8b6709
+SHA1 (patch-au) = 51b263d908db13c639fb275a5e58abe83f4d7324
SHA1 (patch-av) = a14eaf4d5db6fc3b79ed896fbfcc34ca98051af2
SHA1 (patch-aw) = 15652e241f371a22c7300f46771825ea74514fa0
-SHA1 (patch-ax) = bdb8e6555f36b1603c553e03a2d6d772e50c623b
-SHA1 (patch-az) = 473419352f6e1ff3c6e6268e81457e6f8a1fccb8
+SHA1 (patch-ax) = 962fc8059867f55aaba2d32a53f25f4007658e0d
+SHA1 (patch-az) = 303f7b95494780b8fa54192663f0a192e3d46b59
SHA1 (patch-pyconfig.h.in) = 7ebc0ed9ca9a37c5a6c8e04cc3f7fca4a5c90e8c
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/patches/patch-CVE-2012-0845
--- a/lang/python27/patches/patch-CVE-2012-0845 Fri Apr 13 14:19:17 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-CVE-2012-0845,v 1.1 2012/02/15 16:08:26 drochner Exp $
-
-see python bug #14001
-
---- Lib/SimpleXMLRPCServer.py.orig 2009-04-05 21:34:15.000000000 +0000
-+++ Lib/SimpleXMLRPCServer.py
-@@ -459,7 +459,10 @@ class SimpleXMLRPCRequestHandler(BaseHTT
- L = []
- while size_remaining:
- chunk_size = min(size_remaining, max_chunk_size)
-- L.append(self.rfile.read(chunk_size))
-+ chunk = self.rfile.read(chunk_size)
-+ if not chunk:
-+ break
-+ L.append(chunk)
- size_remaining -= len(L[-1])
- data = ''.join(L)
-
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/patches/patch-CVE-2012-1150-Doc_library_sys.rst
--- a/lang/python27/patches/patch-CVE-2012-1150-Doc_library_sys.rst Fri Apr 13 14:19:17 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-CVE-2012-1150-Doc_library_sys.rst,v 1.1 2012/03/24 12:04:37 tron Exp $
-
-Fix for CVE-2012-1150 taken from here:
-
-http://hg.python.org/cpython/rev/a0f43f4481e0
-
---- Doc/library/sys.rst.orig 2011-06-11 16:46:23.000000000 +0100
-+++ Doc/library/sys.rst 2012-03-24 11:02:25.000000000 +0000
-@@ -287,6 +287,7 @@
- :const:`verbose` :option:`-v`
- :const:`unicode` :option:`-U`
- :const:`bytes_warning` :option:`-b`
-+ :const:`hash_randomization` :option:`-R`
- ============================= ===================================
-
- .. versionadded:: 2.6
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/patches/patch-CVE-2012-1150-Doc_reference_datamodel.rst
--- a/lang/python27/patches/patch-CVE-2012-1150-Doc_reference_datamodel.rst Fri Apr 13 14:19:17 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-CVE-2012-1150-Doc_reference_datamodel.rst,v 1.1 2012/03/24 12:04:37 tron Exp $
-
-Fix for CVE-2012-1150 taken from here:
-
-http://hg.python.org/cpython/rev/a0f43f4481e0
-
---- Doc/reference/datamodel.rst.orig 2011-06-11 16:46:23.000000000 +0100
-+++ Doc/reference/datamodel.rst 2012-03-24 11:02:25.000000000 +0000
-@@ -1282,6 +1282,8 @@
- modules are still available at the time when the :meth:`__del__` method is
- called.
-
-+ See also the :option:`-R` command-line option.
-+
-
- .. method:: object.__repr__(self)
-
diff -r 2e8a5a2b1ad6 -r 3ec33eb9b00f lang/python27/patches/patch-CVE-2012-1150-Doc_using_cmdline.rst
--- a/lang/python27/patches/patch-CVE-2012-1150-Doc_using_cmdline.rst Fri Apr 13 14:19:17 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-$NetBSD: patch-CVE-2012-1150-Doc_using_cmdline.rst,v 1.1 2012/03/24 12:04:37 tron Exp $
-
-Fix for CVE-2012-1150 taken from here:
-
-http://hg.python.org/cpython/rev/a0f43f4481e0
-
---- Doc/using/cmdline.rst.orig 2011-06-11 16:46:23.000000000 +0100
-+++ Doc/using/cmdline.rst 2012-03-24 11:02:25.000000000 +0000
-@@ -24,7 +24,7 @@
-
- When invoking Python, you may specify any of these options::
-
-- python [-BdEiOQsStuUvVWxX3?] [-c command | -m module-name | script | - ] [args]
-+ python [-BdEiOQsRStuUvVWxX3?] [-c command | -m module-name | script | - ] [args]
-
- The most common use case is, of course, a simple invocation of a script::
-
-@@ -253,6 +253,29 @@
- :pep:`238` -- Changing the division operator
-
-
-+.. cmdoption:: -R
-+
-+ Turn on hash randomization, so that the :meth:`__hash__` values of str,
-+ bytes and datetime 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.
-+
-+ This is intended to provide protection against a denial-of-service caused by
-+ carefully-chosen inputs that exploit the worst case performance of a dict
-+ insertion, O(n^2) complexity. See
-+ http://www.ocert.org/advisories/ocert-2011-003.html for details.
-+
-+ Changing hash values affects the order in which keys are retrieved from a
-+ dict. Although Python has never made guarantees about this ordering (and it
-+ typically varies between 32-bit and 64-bit builds), enough real-world code
-+ implicitly relies on this non-guaranteed behavior that the randomization is
-+ disabled by default.
-+
-+ See also :envvar:`PYTHONHASHSEED`.
-+
-+ .. versionadded:: 2.6.8
-+
-+
- .. cmdoption:: -s
-
- Don't add user site directory to sys.path
-@@ -521,6 +544,27 @@
-
- .. versionadded:: 2.6
-
-+.. envvar:: PYTHONHASHSEED
-+
-+ If this variable is set to ``random``, the effect is the same as specifying
-+ the :option:`-R` option: a random value is used to seed the hashes of str,
-+ bytes and datetime 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
-+ randomization.
Home |
Main Index |
Thread Index |
Old Index