]> granicus.if.org Git - python/log
python
11 years agoIssue #19718: Add a case-insensitive FS check to test.support to use
Brett Cannon [Fri, 22 Nov 2013 21:14:10 +0000 (16:14 -0500)]
Issue #19718: Add a case-insensitive FS check to test.support to use
in test_pathlib.

Purposefully designed to work from a specified directory in case
multiple file systems are used on the system.

11 years agoAdd note to asyncore/asynchat recommending asyncio for new code.
Guido van Rossum [Fri, 22 Nov 2013 19:57:35 +0000 (11:57 -0800)]
Add note to asyncore/asynchat recommending asyncio for new code.

11 years agoMove select, selectors, asyncio to section 18 (IPC).
Guido van Rossum [Fri, 22 Nov 2013 19:56:46 +0000 (11:56 -0800)]
Move select, selectors, asyncio to section 18 (IPC).

11 years agoNEWS entry for module name repr commit
Brett Cannon [Fri, 22 Nov 2013 19:54:13 +0000 (14:54 -0500)]
NEWS entry for module name repr commit

11 years agomerge
Brett Cannon [Fri, 22 Nov 2013 19:53:07 +0000 (14:53 -0500)]
merge

11 years agoUser the repr for a module name in more places
Brett Cannon [Fri, 22 Nov 2013 19:52:36 +0000 (14:52 -0500)]
User the repr for a module name in more places

11 years agoasyncio: Pass cancellation from wrapping Future to wrapped Future. By Saúl Ibarra...
Guido van Rossum [Fri, 22 Nov 2013 19:47:22 +0000 (11:47 -0800)]
asyncio: Pass cancellation from wrapping Future to wrapped Future. By Saúl Ibarra Corretgé (mostly).

11 years agoMake test_importlib output easier to trace back to the failing test
Brett Cannon [Fri, 22 Nov 2013 19:47:09 +0000 (14:47 -0500)]
Make test_importlib output easier to trace back to the failing test
class.

11 years agoIssue #18864: Don't try and use unittest as a testing module for
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.

11 years agoMake some tests more verbose in the face of failure
Brett Cannon [Fri, 22 Nov 2013 18:22:22 +0000 (13:22 -0500)]
Make some tests more verbose in the face of failure

11 years agoUpdate xz to 5.0.5.
Martin v. Löwis [Fri, 22 Nov 2013 18:13:51 +0000 (19:13 +0100)]
Update xz to 5.0.5.

11 years agoUpdate SQLite to 3.8.1 on Windows.
Martin v. Löwis [Fri, 22 Nov 2013 17:36:28 +0000 (18:36 +0100)]
Update SQLite to 3.8.1 on Windows.

11 years agoRemove a commented-out line
Brett Cannon [Fri, 22 Nov 2013 17:07:43 +0000 (12:07 -0500)]
Remove a commented-out line

11 years agoHopefully fix test_is_socket_true
Antoine Pitrou [Fri, 22 Nov 2013 17:05:06 +0000 (18:05 +0100)]
Hopefully fix test_is_socket_true

11 years agoDon't assume trying to find a builtin will succeed (e.g. posix isn't on Windows)
Brett Cannon [Fri, 22 Nov 2013 16:58:17 +0000 (11:58 -0500)]
Don't assume trying to find a builtin will succeed (e.g. posix isn't on Windows)

11 years agoFix test failure under systems with an incompatible locale
Antoine Pitrou [Fri, 22 Nov 2013 16:57:03 +0000 (17:57 +0100)]
Fix test failure under systems with an incompatible locale

11 years agoFix whitespace
Antoine Pitrou [Fri, 22 Nov 2013 16:38:41 +0000 (17:38 +0100)]
Fix whitespace

11 years agoIssue #19673: Add pathlib to the stdlib as a provisional module (PEP 428).
Antoine Pitrou [Fri, 22 Nov 2013 16:38:12 +0000 (17:38 +0100)]
Issue #19673: Add pathlib to the stdlib as a provisional module (PEP 428).

11 years agoImplement PEP 451 (ModuleSpec).
Eric Snow [Fri, 22 Nov 2013 16:05:39 +0000 (09:05 -0700)]
Implement PEP 451 (ModuleSpec).

11 years agoTrunk merge.
Barry Warsaw [Fri, 22 Nov 2013 16:08:25 +0000 (11:08 -0500)]
Trunk merge.

11 years agoA fix for issue 19555 on Windows.
Barry Warsaw [Fri, 22 Nov 2013 16:08:05 +0000 (11:08 -0500)]
A fix for issue 19555 on Windows.

11 years agoIssue #19448: report name / NID in exception message of ASN1Object
Christian Heimes [Fri, 22 Nov 2013 15:20:53 +0000 (16:20 +0100)]
Issue #19448: report name / NID in exception message of ASN1Object

11 years agoIssue #17134: check certs of CA and ROOT system store
Christian Heimes [Fri, 22 Nov 2013 15:13:55 +0000 (16:13 +0100)]
Issue #17134: check certs of CA and ROOT system store

11 years agoClose #17916: dis.Bytecode based replacement for distb
Nick Coghlan [Fri, 22 Nov 2013 14:57:00 +0000 (00:57 +1000)]
Close #17916: dis.Bytecode based replacement for distb

- Bytecode.from_traceback() alternate constructor
- current_offset parameter and attribute

Patch by Claudiu Popa

11 years agoClose #19552: venv and pyvenv ensurepip integration
Nick Coghlan [Fri, 22 Nov 2013 14:30:34 +0000 (00:30 +1000)]
Close #19552: venv and pyvenv ensurepip integration

11 years agoUpdate bundled pip to 1.5rc1
Nick Coghlan [Fri, 22 Nov 2013 13:32:24 +0000 (23:32 +1000)]
Update bundled pip to 1.5rc1

11 years agoIssue #19619: Update What's New for codec blacklist
Nick Coghlan [Fri, 22 Nov 2013 13:00:22 +0000 (23:00 +1000)]
Issue #19619: Update What's New for codec blacklist

11 years agoIssue #19619: Blacklist non-text codecs in method API
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.

11 years agoIssue #19553: PEP 453 - "make install" and "make altinstall" now install or
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]".

11 years agoIssue #19649: On OS X, the same set of file names are now installed
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.

11 years agoIssue #14455: Fix maybe_open typo in Plist.fromFile().
Ned Deily [Fri, 22 Nov 2013 04:56:23 +0000 (20:56 -0800)]
Issue #14455: Fix maybe_open typo in Plist.fromFile().

11 years ago#19688: add back and deprecate the internal HTMLParser.unescape() method.
Ezio Melotti [Fri, 22 Nov 2013 03:49:29 +0000 (05:49 +0200)]
#19688: add back and deprecate the internal HTMLParser.unescape() method.

11 years agoor VERIFY_CRL_CHECK_LEAF to verify_flags
Christian Heimes [Fri, 22 Nov 2013 02:43:48 +0000 (03:43 +0100)]
or VERIFY_CRL_CHECK_LEAF to verify_flags

11 years agoIssue #19664: fix another flake test_userdict test
Christian Heimes [Fri, 22 Nov 2013 02:36:28 +0000 (03:36 +0100)]
Issue #19664: fix another flake test_userdict test

11 years agoIssue #18147: Add missing documentation for SSLContext.get_ca_certs().
Christian Heimes [Fri, 22 Nov 2013 01:22:51 +0000 (02:22 +0100)]
Issue #18147: Add missing documentation for SSLContext.get_ca_certs().
Also change the argument name to the same name as getpeercert()

11 years agoIssue #17134: Finalize interface to Windows' certificate store. Cert and
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.

11 years agoIssue #19681: Apply a quick and minimal band-aid.
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.

11 years agomerge
Christian Heimes [Fri, 22 Nov 2013 00:17:34 +0000 (01:17 +0100)]
merge

11 years agoIssue #19664: test_userdict's repr test no longer depends on the order
Christian Heimes [Fri, 22 Nov 2013 00:16:56 +0000 (01:16 +0100)]
Issue #19664: test_userdict's repr test no longer depends on the order
of dict elements.
Original patch by Serhiy Storchaka

11 years agotrunk merge
Barry Warsaw [Thu, 21 Nov 2013 23:57:41 +0000 (18:57 -0500)]
trunk merge

11 years ago- Issue #19555: Restore sysconfig.get_config_var('SO'), with a
Barry Warsaw [Thu, 21 Nov 2013 23:57:14 +0000 (18:57 -0500)]
- Issue #19555: Restore sysconfig.get_config_var('SO'), with a
  DeprecationWarning pointing people at $EXT_SUFFIX.

11 years agosilence an overflow warning. slen is smaller than 1MB
Christian Heimes [Thu, 21 Nov 2013 23:46:18 +0000 (00:46 +0100)]
silence an overflow warning. slen is smaller than 1MB

11 years agoone CERT_REQUIRED is enough
Christian Heimes [Thu, 21 Nov 2013 23:39:38 +0000 (00:39 +0100)]
one CERT_REQUIRED is enough

11 years agodowncast len to int. The code has already checked that len < INT_MAX
Christian Heimes [Thu, 21 Nov 2013 23:34:18 +0000 (00:34 +0100)]
downcast len to int. The code has already checked that len < INT_MAX

11 years agolst might be NULL here
Christian Heimes [Thu, 21 Nov 2013 22:57:49 +0000 (23:57 +0100)]
lst might be NULL here
CID 1130752:  Dereference after null check  (FORWARD_NULL)

11 years agoIssue #8813: Add SSLContext.verify_flags to change the verification flags
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.

11 years agoClose #18294: Fix the zlib module to make it 64-bit safe
Victor Stinner [Thu, 21 Nov 2013 21:33:21 +0000 (22:33 +0100)]
Close #18294: Fix the zlib module to make it 64-bit safe

11 years agoBetter behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye.
Guido van Rossum [Thu, 21 Nov 2013 19:30:06 +0000 (11:30 -0800)]
Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye.

11 years agoasyncio: Make Semaphore(0) work properly.
Guido van Rossum [Thu, 21 Nov 2013 19:07:45 +0000 (11:07 -0800)]
asyncio: Make Semaphore(0) work properly.

11 years agoPrint Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
Serhiy Storchaka [Thu, 21 Nov 2013 17:23:50 +0000 (19:23 +0200)]
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).

11 years agoPrint Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
Serhiy Storchaka [Thu, 21 Nov 2013 17:23:19 +0000 (19:23 +0200)]
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).

11 years agomerge
Christian Heimes [Thu, 21 Nov 2013 15:27:33 +0000 (16:27 +0100)]
merge

11 years agoIssue #19682: Fix compatibility issue with old version of OpenSSL that
Christian Heimes [Thu, 21 Nov 2013 15:26:51 +0000 (16:26 +0100)]
Issue #19682: Fix compatibility issue with old version of OpenSSL that
was introduced by Issue #18379.

11 years agoIssue #14455: plistlib now supports binary plists and has an updated API.
Ronald Oussoren [Thu, 21 Nov 2013 14:46:49 +0000 (15:46 +0100)]
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.

11 years agoClose #19568: Fix bytearray_setslice_linear(), fix handling of
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.

11 years agoClose #19578: Fix list_ass_subscript(), handle list_resize() failure
Victor Stinner [Thu, 21 Nov 2013 11:16:35 +0000 (12:16 +0100)]
Close #19578: Fix list_ass_subscript(), handle list_resize() failure

Notify the caller of the failure (MemoryError exception).

11 years agoIssue #19183: Simplify test_gdb
Victor Stinner [Thu, 21 Nov 2013 09:25:09 +0000 (10:25 +0100)]
Issue #19183: Simplify test_gdb

repr() is no more platform dependent, SipHash has been fixed

11 years agoIssue #19633: Fixed writing not compressed 16- and 32-bit wave files on
Serhiy Storchaka [Thu, 21 Nov 2013 09:04:22 +0000 (11:04 +0200)]
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.

11 years agoIssue #19633: Fixed writing not compressed 16- and 32-bit wave files on
Serhiy Storchaka [Thu, 21 Nov 2013 09:02:30 +0000 (11:02 +0200)]
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.

11 years agoIssue #18379: SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
Christian Heimes [Thu, 21 Nov 2013 02:40:15 +0000 (03:40 +0100)]
Issue #18379: SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
and CRL distribution points.

11 years agoIssue #18138: Implement cadata argument of SSLContext.load_verify_location()
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.

11 years agoClarify where "Documenting Python" can be found.
Guido van Rossum [Wed, 20 Nov 2013 19:53:31 +0000 (11:53 -0800)]
Clarify where "Documenting Python" can be found.

11 years agoIssue #19474: Argument Clinic now always specifies a default value for
Larry Hastings [Wed, 20 Nov 2013 17:13:52 +0000 (09:13 -0800)]
Issue #19474: Argument Clinic now always specifies a default value for
variables in option groups, to prevent "uninitialized value" warnings.

11 years agoIssue #16632: Enable DEP and ASLR on Windows.
Christian Heimes [Wed, 20 Nov 2013 16:43:23 +0000 (17:43 +0100)]
Issue #16632: Enable DEP and ASLR on Windows.

11 years agoIssue #17791: Drop PREFIX and EXEC_PREFIX definitions from PC/pyconfig.h
Christian Heimes [Wed, 20 Nov 2013 16:40:31 +0000 (17:40 +0100)]
Issue #17791: Drop PREFIX and EXEC_PREFIX definitions from PC/pyconfig.h

11 years agoIssue #18775: Add name and block_size attribute to HMAC object. They now
Christian Heimes [Wed, 20 Nov 2013 16:35:06 +0000 (17:35 +0100)]
Issue #18775: Add name and block_size attribute to HMAC object. They now
provide the same API elements as non-keyed cryptographic hash functions.

11 years agoIssue #17276: MD5 as default digestmod for HMAC is deprecated. The HMAC
Christian Heimes [Wed, 20 Nov 2013 16:23:06 +0000 (17:23 +0100)]
Issue #17276: MD5 as default digestmod for HMAC is deprecated. The HMAC
module supports digestmod names, e.g. hmac.HMAC('sha1').

11 years agoPrint Tk patchlevel in test_tcl in verbose mode (issue19654).
Serhiy Storchaka [Wed, 20 Nov 2013 15:44:28 +0000 (17:44 +0200)]
Print Tk patchlevel in test_tcl in verbose mode (issue19654).

11 years agoPrint Tk patchlevel in test_tcl in verbose mode (issue19654).
Serhiy Storchaka [Wed, 20 Nov 2013 15:43:49 +0000 (17:43 +0200)]
Print Tk patchlevel in test_tcl in verbose mode (issue19654).

11 years agoupdate siphash24 test values
Christian Heimes [Wed, 20 Nov 2013 12:47:13 +0000 (13:47 +0100)]
update siphash24 test values

11 years agoIssue #19183: too many tests depend on the sort order of repr().
Christian Heimes [Wed, 20 Nov 2013 11:49:05 +0000 (12:49 +0100)]
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.

11 years agoIssue #19183: Fix repr() tests of test_gdb, hash() is now platform dependent
Victor Stinner [Wed, 20 Nov 2013 11:27:48 +0000 (12:27 +0100)]
Issue #19183: Fix repr() tests of test_gdb, hash() is now platform dependent

11 years agoIssue #19183: test_gdb's test_dict was failing on some machines as the order or dict...
Christian Heimes [Wed, 20 Nov 2013 11:00:35 +0000 (12:00 +0100)]
Issue #19183: test_gdb's test_dict was failing on some machines as the order or dict keys has changed again.

11 years agossue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Christian Heimes [Wed, 20 Nov 2013 10:46:18 +0000 (11:46 +0100)]
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.

11 years agoconfigure: use AC_MSG_NOTICE() instead of AC_MSG_WARN() to inform user about C++...
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.

11 years agoconfigure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.
Christian Heimes [Wed, 20 Nov 2013 00:11:33 +0000 (01:11 +0100)]
configure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.

11 years agoconfigure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.
Christian Heimes [Wed, 20 Nov 2013 00:11:18 +0000 (01:11 +0100)]
configure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.

11 years agoAdd workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake...
Christian Heimes [Tue, 19 Nov 2013 23:50:38 +0000 (00:50 +0100)]
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.

11 years agoAdd workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake...
Christian Heimes [Tue, 19 Nov 2013 23:41:29 +0000 (00:41 +0100)]
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.

11 years ago_msi.c: Fix compiler warnings on Windows 64-bit
Victor Stinner [Tue, 19 Nov 2013 23:14:49 +0000 (00:14 +0100)]
_msi.c: Fix compiler warnings on Windows 64-bit

"hf" type is INT_PTR, it is used to store an int in _msi.c.

11 years agoIssue #9566, #19617: Fix more compiler warnings in compile.c on Windows 64-bit
Victor Stinner [Tue, 19 Nov 2013 22:56:34 +0000 (23:56 +0100)]
Issue #9566, #19617: Fix more compiler warnings in compile.c on Windows 64-bit

11 years agoIssue #19637: fix test_undecodable_env() of test_subprocess on AIX
Victor Stinner [Tue, 19 Nov 2013 22:46:06 +0000 (23:46 +0100)]
Issue #19637: fix test_undecodable_env() of test_subprocess on AIX

On AIX, the C locale encoding uses the ISO-8859-1 encoding, not ASCII.

11 years agoIssue #9566, #19617: New try to fix compilation on Windows
Victor Stinner [Tue, 19 Nov 2013 22:03:25 +0000 (23:03 +0100)]
Issue #9566, #19617: New try to fix compilation on Windows

Some compilers (ex: Visual Studio) decode -2147483648 as a unsigned integer
instead of an signed integer.

11 years agoIssue #9566, #19617: Fix compilation on Windows
Victor Stinner [Tue, 19 Nov 2013 21:28:01 +0000 (22:28 +0100)]
Issue #9566, #19617: Fix compilation on Windows

INT32_MIN and INT32_MAX constants are unknown on Windows.

11 years agoIssue #9566: compile.c uses Py_ssize_t instead of int to store sizes to fix
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.

11 years agoasyncio: Add streams.start_server(), by Gustavo Carneiro.
Guido van Rossum [Tue, 19 Nov 2013 19:43:38 +0000 (11:43 -0800)]
asyncio: Add streams.start_server(), by Gustavo Carneiro.

11 years ago#2927: Added the unescape() function to the html module.
Ezio Melotti [Tue, 19 Nov 2013 18:28:45 +0000 (20:28 +0200)]
#2927: Added the unescape() function to the html module.

11 years agoMerge: #19449: Handle non-string keys when generating 'fieldnames' error.
R David Murray [Tue, 19 Nov 2013 18:17:26 +0000 (13:17 -0500)]
Merge: #19449: Handle non-string keys when generating 'fieldnames' error.

11 years ago#19449: Handle non-string keys when generating 'fieldnames' error.
R David Murray [Tue, 19 Nov 2013 18:16:20 +0000 (13:16 -0500)]
#19449: Handle non-string keys when generating 'fieldnames' error.

csv was handling non-string keys fine except for the error message
generated when a non-string key was not in 'fieldnames'.

Fix by Tomas Grahn, full patch-with-test by Vajrasky Kok (tweaked slightly).

11 years agoMerge from 3.3
Andrew Kuchling [Tue, 19 Nov 2013 16:06:44 +0000 (11:06 -0500)]
Merge from 3.3

11 years ago#1098749: re-word gettext docs to not encourage using pygettext so much.
Andrew Kuchling [Tue, 19 Nov 2013 16:05:20 +0000 (11:05 -0500)]
#1098749: re-word gettext docs to not encourage using pygettext so much.

Also, add a link to the Babel package.

11 years agoIssue #19550: Implement Windows installer changes of PEP 453 (ensurepip).
Martin v. Löwis [Tue, 19 Nov 2013 16:02:36 +0000 (17:02 +0100)]
Issue #19550: Implement Windows installer changes of PEP 453 (ensurepip).

11 years agoRemove dead code committed in issue #12892.
Serhiy Storchaka [Tue, 19 Nov 2013 13:56:05 +0000 (15:56 +0200)]
Remove dead code committed in issue #12892.

11 years agoAlso chain codec exceptions that allow weakrefs
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.

11 years agooops, remove _PyObject_ReprWriter() definition (unwanted change)
Victor Stinner [Tue, 19 Nov 2013 12:18:45 +0000 (13:18 +0100)]
oops, remove _PyObject_ReprWriter() definition (unwanted change)

11 years agoIssue #19646: repr(dict) now uses _PyUnicodeWriter API for better performances
Victor Stinner [Tue, 19 Nov 2013 12:07:38 +0000 (13:07 +0100)]
Issue #19646: repr(dict) now uses _PyUnicodeWriter API for better performances

11 years agoIssue #19513: repr(tuple) now uses _PyUnicodeWriter for better performances
Victor Stinner [Tue, 19 Nov 2013 11:59:46 +0000 (12:59 +0100)]
Issue #19513: repr(tuple) now uses _PyUnicodeWriter for better performances

11 years agoAdd _PyUnicodeWriter_WriteASCIIString() function
Victor Stinner [Tue, 19 Nov 2013 11:54:53 +0000 (12:54 +0100)]
Add _PyUnicodeWriter_WriteASCIIString() function

11 years agoIssue #19513: Disable overallocation of the PyUnicodeWriter before the last write
Victor Stinner [Tue, 19 Nov 2013 11:09:00 +0000 (12:09 +0100)]
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write

11 years agoIssue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.
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.