Nick Coghlan
c72e4e6dcc
Issue #19619 : Blacklist non-text codecs in method API
...
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
2013-11-22 22:39:36 +10:00
Ned Deily
322f5ba0d8
Issue #19553 : PEP 453 - "make install" and "make altinstall" now install or
...
upgrade pip by default, using the bundled pip provided by the new ensurepip
module. A new configure option, --with-ensurepip[=upgrade|install|no], is
available to override the default ensurepip "--upgrade" option. The option
can also be set with "make [alt]install ENSUREPIP=[upgrade|install\no]".
2013-11-21 23:01:59 -08:00
Ned Deily
b8f944f0b7
Issue #19649 : On OS X, the same set of file names are now installed
...
in bin directories for all configurations: non-framework vs framework,
and single arch vs universal builds. pythonx.y-32 is now always
installed for 64-bit/32-bit universal builds. The obsolete and
undocumented pythonw* symlinks are no longer installed anywhere.
2013-11-21 22:42:25 -08:00
Ned Deily
c06d6fdc37
Issue #14455 : Fix maybe_open typo in Plist.fromFile().
2013-11-21 20:56:23 -08:00
Ezio Melotti
f6de9eb2bb
#19688 : add back and deprecate the internal HTMLParser.unescape() method.
2013-11-22 05:49:29 +02:00
Christian Heimes
32f0c7a67b
or VERIFY_CRL_CHECK_LEAF to verify_flags
2013-11-22 03:43:48 +01:00
Christian Heimes
d5b200ce2b
Issue #19664 : fix another flake test_userdict test
2013-11-22 03:36:28 +01:00
Christian Heimes
f22e8e5426
Issue #18147 : Add missing documentation for SSLContext.get_ca_certs().
...
Also change the argument name to the same name as getpeercert()
2013-11-22 02:22:51 +01:00
Christian Heimes
44109d7de7
Issue #17134 : Finalize interface to Windows' certificate store. Cert and
...
CRL enumeration are now two functions. enum_certificates() also returns
purpose flags as set of OIDs.
2013-11-22 01:51:30 +01:00
Christian Heimes
d062892542
Issue #19681 : Apply a quick and minimal band-aid.
...
The flaky buildbots make it hard to detect real issue. This is just a temporary fix until we agree
on a permanent solution.
2013-11-22 01:22:47 +01:00
Christian Heimes
35915876a6
merge
2013-11-22 01:17:34 +01:00
Christian Heimes
5f8b0f5c59
Issue #19664 : test_userdict's repr test no longer depends on the order
...
of dict elements.
Original patch by Serhiy Storchaka
2013-11-22 01:16:56 +01:00
Barry Warsaw
99fc416b23
trunk merge
2013-11-21 18:57:41 -05:00
Barry Warsaw
197a770231
- Issue #19555 : Restore sysconfig.get_config_var('SO'), with a
...
DeprecationWarning pointing people at $EXT_SUFFIX.
2013-11-21 18:57:14 -05:00
Christian Heimes
ba723200ce
silence an overflow warning. slen is smaller than 1MB
2013-11-22 00:46:18 +01:00
Christian Heimes
d6dc952e17
one CERT_REQUIRED is enough
2013-11-22 00:39:38 +01:00
Christian Heimes
1dbf61fa46
downcast len to int. The code has already checked that len < INT_MAX
2013-11-22 00:34:18 +01:00
Christian Heimes
18fc7be80d
lst might be NULL here
...
CID 1130752: Dereference after null check (FORWARD_NULL)
2013-11-21 23:57:49 +01:00
Christian Heimes
225877917e
Issue #8813 : Add SSLContext.verify_flags to change the verification flags
...
of the context in order to enable certification revocation list (CRL)
checks or strict X509 rules.
2013-11-21 23:56:13 +01:00
Victor Stinner
e079eddf21
Close #18294 : Fix the zlib module to make it 64-bit safe
2013-11-21 22:33:21 +01:00
Guido van Rossum
8820c239f7
Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye.
2013-11-21 11:30:06 -08:00
Guido van Rossum
9c55a58a1d
asyncio: Make Semaphore(0) work properly.
2013-11-21 11:07:45 -08:00
Serhiy Storchaka
d88c6f9b9b
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
2013-11-21 19:23:50 +02:00
Serhiy Storchaka
0b1386d922
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
2013-11-21 19:23:19 +02:00
Christian Heimes
1b62760221
merge
2013-11-21 16:27:33 +01:00
Christian Heimes
949ec14209
Issue #19682 : Fix compatibility issue with old version of OpenSSL that
...
was introduced by Issue #18379 .
2013-11-21 16:26:51 +01:00
Ronald Oussoren
c5cf797342
Issue #14455 : plistlib now supports binary plists and has an updated API.
...
This patch adds support for binary plists on OSX to plistlib (based
on a patch by 'dpounces').
The patch also cleans up the API for the plistlib module.
2013-11-21 15:46:49 +01:00
Victor Stinner
8455723cfb
Close #19568 : Fix bytearray_setslice_linear(), fix handling of
...
PyByteArray_Resize() failure: leave the bytearray object in an consistent state.
If growth < 0, handling the memory allocation failure is tricky here because
the bytearray object has already been modified. If lo != 0, the operation is
completed, but a MemoryError is still raised and the memory block is not
shrinked. If lo == 0, the bytearray is restored in its previous state and a
MemoryError is raised.
2013-11-21 12:29:51 +01:00
Victor Stinner
35f2803a24
Close #19578 : Fix list_ass_subscript(), handle list_resize() failure
...
Notify the caller of the failure (MemoryError exception).
2013-11-21 12:16:35 +01:00
Victor Stinner
a282825bf6
Issue #19183 : Simplify test_gdb
...
repr() is no more platform dependent, SipHash has been fixed
2013-11-21 10:25:09 +01:00
Serhiy Storchaka
f4fd257a02
Issue #19633 : Fixed writing not compressed 16- and 32-bit wave files on
...
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
2013-11-21 11:04:22 +02:00
Serhiy Storchaka
d9a018222f
Issue #19633 : Fixed writing not compressed 16- and 32-bit wave files on
...
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
2013-11-21 11:02:30 +02:00
Christian Heimes
bd3a7f90b5
Issue #18379 : SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
...
and CRL distribution points.
2013-11-21 03:40:15 +01:00
Christian Heimes
efff7060f8
Issue #18138 : Implement cadata argument of SSLContext.load_verify_location()
...
to load CA certificates and CRL from memory. It supports PEM and DER
encoded strings.
2013-11-21 03:35:02 +01:00
Guido van Rossum
e6e2d9be6e
Clarify where "Documenting Python" can be found.
2013-11-20 11:53:31 -08:00
Larry Hastings
abc716b058
Issue #19474 : Argument Clinic now always specifies a default value for
...
variables in option groups, to prevent "uninitialized value" warnings.
2013-11-20 09:13:52 -08:00
Christian Heimes
f3bf35eee4
Issue #16632 : Enable DEP and ASLR on Windows.
2013-11-20 17:43:23 +01:00
Christian Heimes
552e6c7284
Issue #17791 : Drop PREFIX and EXEC_PREFIX definitions from PC/pyconfig.h
2013-11-20 17:40:31 +01:00
Christian Heimes
c4ab11050d
Issue #18775 : Add name and block_size attribute to HMAC object. They now
...
provide the same API elements as non-keyed cryptographic hash functions.
2013-11-20 17:35:06 +01:00
Christian Heimes
634919a9fa
Issue #17276 : MD5 as default digestmod for HMAC is deprecated. The HMAC
...
module supports digestmod names, e.g. hmac.HMAC('sha1').
2013-11-20 17:23:06 +01:00
Serhiy Storchaka
7f48396cb5
Print Tk patchlevel in test_tcl in verbose mode (issue19654).
2013-11-20 17:44:28 +02:00
Serhiy Storchaka
8db1823cf7
Print Tk patchlevel in test_tcl in verbose mode (issue19654).
2013-11-20 17:43:49 +02:00
Christian Heimes
680dc21380
update siphash24 test values
2013-11-20 13:47:13 +01:00
Christian Heimes
a5bcd7c0ee
Issue #19183 : too many tests depend on the sort order of repr().
...
The bitshift and xor op for 32bit builds has changed the order of hash values.
2013-11-20 12:49:05 +01:00
Victor Stinner
5132493155
Issue #19183 : Fix repr() tests of test_gdb, hash() is now platform dependent
2013-11-20 12:27:48 +01:00
Christian Heimes
156983ae3b
Issue #19183 : test_gdb's test_dict was failing on some machines as the order or dict keys has changed again.
2013-11-20 12:00:35 +01:00
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
...
Python now uses SipHash24 on all major platforms.
2013-11-20 11:46:18 +01:00
Christian Heimes
fe32aec25a
configure: use AC_MSG_NOTICE() instead of AC_MSG_WARN() to inform user about C++ compiler.
...
Now './configure --silent && make -s' doesn't print any message to stdout or stderr.
2013-11-20 01:18:26 +01:00
Christian Heimes
0bedc973ba
configure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.
2013-11-20 01:11:33 +01:00
Christian Heimes
75ed890de5
configure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.
2013-11-20 01:11:18 +01:00