Eric Smith [Wed, 27 Jan 2010 00:28:29 +0000 (00:28 +0000)]
Issue #7766: Change sys.getwindowsversion() return value to a named tuple and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
Ezio Melotti [Fri, 22 Jan 2010 16:58:28 +0000 (16:58 +0000)]
This should fix the failure introduced in r77680. The error message is now different and it caused the test to fail. The failing test is not present in 2.5 so it is failing only on 2.6 and newer versions.
Mark Dickinson [Wed, 20 Jan 2010 17:36:31 +0000 (17:36 +0000)]
Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing code
and exit points. 2. Simplify bigcomp comparison loop. 3. Don't set
ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway).
4. Remove unused dsign field from BCinfo struct.
Gregory P. Smith [Tue, 19 Jan 2010 08:19:03 +0000 (08:19 +0000)]
Do not compile stubs for the sha2 series hashes in the openssl hashlib
module when the openssl version is too old to support them. That
leads both compiled code bloat and to unittests attempting to test
implementations that don't exist for comparison purposes on such
platforms.
Mark Dickinson [Sun, 17 Jan 2010 20:57:56 +0000 (20:57 +0000)]
Issue #7632: When Py_USING_MEMORY_DEBUGGER is defined, disable the
private memory allocation scheme in dtoa.c, along with a piece of code
that caches powers of 5 for future use. This makes it easier to
detect dtoa.c memory leaks with Valgrind or similar tools.
Ronald Oussoren [Sun, 17 Jan 2010 19:27:57 +0000 (19:27 +0000)]
This patch ensures that the configure-script mentions checking for --enable-universalsdk
and that it doesn't default to the 10.4u SDK when that SDK does not exist.
(This affects OSX)
This patch should fix most of issue 4834, although I haven't gotten enough
information from the user to be sure.
Antoine Pitrou [Sun, 17 Jan 2010 12:26:20 +0000 (12:26 +0000)]
Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)
could crash in many places because of the PyByteArray_AS_STRING() macro
returning NULL. The macro now returns a statically allocated empty
string instead.
Mark Dickinson [Sat, 16 Jan 2010 10:44:00 +0000 (10:44 +0000)]
Issue #7632: Fix a serious wrong output bug for string -> float conversion.
Also remove some now unused variables, and add comments clarifying the
possible outputs of the parsing section of _Py_dg_strtod. Thanks
Eric Smith for reviewing.
R. David Murray [Sat, 16 Jan 2010 05:15:17 +0000 (05:15 +0000)]
Issue #1670765: Prevent email.generator.Generator from re-wrapping
headers in multipart/signed MIME parts, which fixes one of the sources of
invalid modifications to such parts by Generator. Patch and tests by
Martin von Gagern.
Brett Cannon [Thu, 14 Jan 2010 20:00:28 +0000 (20:00 +0000)]
The silencing of DeprecationWarning was not taking -3 into consideration. Since
Py3K warnings are DeprecationWarning by default this was causing -3 to
essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
used.
Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help.
Antoine Pitrou [Thu, 14 Jan 2010 16:27:09 +0000 (16:27 +0000)]
Issue #7703: Add support for the new buffer API to functions of the
binascii module. Backported from py3k by Florent Xicluna, with some
additional tests.
Mark Dickinson [Thu, 14 Jan 2010 13:02:36 +0000 (13:02 +0000)]
Fix off-by-one error introduced in r77483. I have a test for this, but it currently fails due to a different dtoa.c bug; I'll add the test once that bug is fixed.
Skip Montanaro [Thu, 14 Jan 2010 01:12:34 +0000 (01:12 +0000)]
Update PyEval_EvalFrame to PyEval_EvalFrameEx. This looks to have been done
partially before. Also add a comment describing how this might have to work
with different versions of the interpreter.
Antoine Pitrou [Wed, 13 Jan 2010 07:55:48 +0000 (07:55 +0000)]
Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
methods of bytes, bytearray and unicode objects by using a common
implementation based on stringlib's fast search. Patch by Florent Xicluna.