Brett Cannon [Fri, 22 Nov 2013 19:38:09 +0000 (14:38 -0500)]
Issue #18864: Don't try and use unittest as a testing module for
built-in loading; leads to a reload scenario where attributes get set
which are wrong after the test.
Nick Coghlan [Fri, 22 Nov 2013 12:39:36 +0000 (22:39 +1000)]
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.
Ned Deily [Fri, 22 Nov 2013 07:01:59 +0000 (23:01 -0800)]
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]".
Ned Deily [Fri, 22 Nov 2013 06:42:25 +0000 (22:42 -0800)]
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.
Christian Heimes [Fri, 22 Nov 2013 00:51:30 +0000 (01:51 +0100)]
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.
Christian Heimes [Fri, 22 Nov 2013 00:22:47 +0000 (01:22 +0100)]
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.
Christian Heimes [Thu, 21 Nov 2013 22:56:13 +0000 (23:56 +0100)]
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.
Victor Stinner [Thu, 21 Nov 2013 11:29:51 +0000 (12:29 +0100)]
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.
Christian Heimes [Thu, 21 Nov 2013 02:35:02 +0000 (03:35 +0100)]
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.
Christian Heimes [Wed, 20 Nov 2013 00:18:26 +0000 (01:18 +0100)]
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.
Victor Stinner [Tue, 19 Nov 2013 21:23:20 +0000 (22:23 +0100)]
Issue #9566: compile.c uses Py_ssize_t instead of int to store sizes to fix
compiler warnings on Windows 64-bit. Use Py_SAFE_DOWNCAST() where the final
downcast is needed.
The bytecode doesn't support integer parameters larger than 32-bit yet.
Nick Coghlan [Tue, 19 Nov 2013 12:33:10 +0000 (22:33 +1000)]
Also chain codec exceptions that allow weakrefs
The zlib and hex codecs throw custom exception types with
weakref support if the input type is valid, but the data
fails validation. Make sure the exception chaining in the
codec infrastructure can wrap those as well.
Serhiy Storchaka [Tue, 19 Nov 2013 09:32:41 +0000 (11:32 +0200)]
Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.