]> granicus.if.org Git - python/log
python
15 years agomove test outside WITH_THREAD section
Benjamin Peterson [Sat, 30 Jan 2010 23:26:05 +0000 (23:26 +0000)]
move test outside WITH_THREAD section

15 years ago#7802: fix invalid example (heh).
Georg Brandl [Sat, 30 Jan 2010 17:57:48 +0000 (17:57 +0000)]
#7802: fix invalid example (heh).

15 years agoUse the correct markup for args
Ezio Melotti [Sat, 30 Jan 2010 13:27:05 +0000 (13:27 +0000)]
Use the correct markup for args

15 years agoRelocate a couple of stars and remove redundant backticks
Ezio Melotti [Sat, 30 Jan 2010 13:08:54 +0000 (13:08 +0000)]
Relocate a couple of stars and remove redundant backticks

15 years agoMerged revisions 77419,77435 via svnmerge from
Martin v. Löwis [Sat, 30 Jan 2010 10:56:23 +0000 (10:56 +0000)]
Merged revisions 77419,77435 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77419 | benjamin.peterson | 2010-01-10 21:39:48 +0100 (So, 10 Jan 2010) | 1 line

  enclose path in quotes to handle paths with spaces correctly #7666
........
  r77435 | alexandre.vassalotti | 2010-01-12 01:36:54 +0100 (Di, 12 Jan 2010) | 2 lines

  Issue #1967: Add fixer for dictionary views.
........

15 years agoIssue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, a
Mark Dickinson [Sat, 30 Jan 2010 10:08:33 +0000 (10:08 +0000)]
Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, a
long long variant of PyLong_AsLongAndOverflow.  Patch by Case Van
Horsen.

15 years ago#7092: silence py3k warnings for deprecated modules
Ezio Melotti [Sat, 30 Jan 2010 07:22:54 +0000 (07:22 +0000)]
#7092: silence py3k warnings for deprecated modules

15 years ago#7801: fix xmlrpclib binary example, open the picture in binary mode
Victor Stinner [Sat, 30 Jan 2010 02:00:26 +0000 (02:00 +0000)]
#7801: fix xmlrpclib binary example, open the picture in binary mode

15 years agoAdd Victor Stinner.
Martin v. Löwis [Sat, 30 Jan 2010 00:15:44 +0000 (00:15 +0000)]
Add Victor Stinner.

15 years agoFix typo in assertSequenceEqual docstring.
R. David Murray [Fri, 29 Jan 2010 19:35:39 +0000 (19:35 +0000)]
Fix typo in assertSequenceEqual docstring.

15 years agoIssue #7788: Fix a crash produced by deleting a list slice with huge
Mark Dickinson [Fri, 29 Jan 2010 17:11:39 +0000 (17:11 +0000)]
Issue #7788: Fix a crash produced by deleting a list slice with huge
step value.  Patch by Marcin Bachry.

15 years agoChange error report when the object passed to suite.addTest is not
R. David Murray [Thu, 28 Jan 2010 21:16:33 +0000 (21:16 +0000)]
Change error report when the object passed to suite.addTest is not
callable to include the repr of the invalid object.

15 years agoavoid a py3k warning from __hash__
Benjamin Peterson [Thu, 28 Jan 2010 02:18:25 +0000 (02:18 +0000)]
avoid a py3k warning from __hash__

15 years agoan -> a
Benjamin Peterson [Thu, 28 Jan 2010 02:15:02 +0000 (02:15 +0000)]
an -> a

15 years agoavoid to use zlib when the compress type is not ZIP_DEFLATED
Ezio Melotti [Thu, 28 Jan 2010 01:41:30 +0000 (01:41 +0000)]
avoid to use zlib when the compress type is not ZIP_DEFLATED

15 years agoadd compat note
Benjamin Peterson [Thu, 28 Jan 2010 01:24:46 +0000 (01:24 +0000)]
add compat note

15 years agoIssue #7610: Reworked implementation of the internal
Antoine Pitrou [Wed, 27 Jan 2010 20:59:50 +0000 (20:59 +0000)]
Issue #7610: Reworked implementation of the internal
:class:`zipfile.ZipExtFile` class used to represent files stored inside
an archive.  The new implementation is significantly faster and can
be wrapped in a :class:`io.BufferedReader` object for more speedups.
It also solves an issue where interleaved calls to `read()` and
`readline()` give wrong results.  Patch by Nir Aides.

15 years ago#7765: typos
Ezio Melotti [Wed, 27 Jan 2010 20:25:11 +0000 (20:25 +0000)]
#7765: typos

15 years agoIssue #6963: Added maxtasksperchild argument to multiprocessing.Pool
Jesse Noller [Wed, 27 Jan 2010 03:05:57 +0000 (03:05 +0000)]
Issue #6963: Added maxtasksperchild argument to multiprocessing.Pool

15 years agoraise a clear TypeError when trying to register a non-class
Benjamin Peterson [Wed, 27 Jan 2010 02:16:42 +0000 (02:16 +0000)]
raise a clear TypeError when trying to register a non-class

15 years agofor UserDict to be compatible with abcs, it must subclass object
Benjamin Peterson [Wed, 27 Jan 2010 02:15:28 +0000 (02:15 +0000)]
for UserDict to be compatible with abcs, it must subclass object

15 years agoAdded named (but not numbered) attributes to sys.getwindowsversion() test.
Eric Smith [Wed, 27 Jan 2010 02:06:25 +0000 (02:06 +0000)]
Added named (but not numbered) attributes to sys.getwindowsversion() test.

15 years agoSwitch to test_support.get_attribute.
Eric Smith [Wed, 27 Jan 2010 01:21:15 +0000 (01:21 +0000)]
Switch to test_support.get_attribute.

15 years agoRemoved unneeded test.
Eric Smith [Wed, 27 Jan 2010 00:58:43 +0000 (00:58 +0000)]
Removed unneeded test.

15 years agoFix type on getwindowsversion documentation. Thanks Taggnostr.
Eric Smith [Wed, 27 Jan 2010 00:55:16 +0000 (00:55 +0000)]
Fix type on getwindowsversion documentation. Thanks Taggnostr.

15 years agoIssue #7766: Change sys.getwindowsversion() return value to a named tuple and add...
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.

15 years agoadded local get_platform/set_platform APIs in distutils.sysconfig
Tarek Ziadé [Tue, 26 Jan 2010 22:46:15 +0000 (22:46 +0000)]
added local get_platform/set_platform APIs in distutils.sysconfig

15 years agoreintroduced the names in Distutils for APIs that were relocated
Tarek Ziadé [Tue, 26 Jan 2010 21:21:54 +0000 (21:21 +0000)]
reintroduced the names in Distutils for APIs that were relocated

15 years agofixed bdist_msi imports and added a test module for distutils.command.bdist_msi
Tarek Ziadé [Tue, 26 Jan 2010 17:20:37 +0000 (17:20 +0000)]
fixed bdist_msi imports and added a test module for distutils.command.bdist_msi

15 years ago#7092: fix DeprecationWarnings for json when the tests are run with -3 -Wd.
Ezio Melotti [Tue, 26 Jan 2010 15:57:21 +0000 (15:57 +0000)]
#7092: fix DeprecationWarnings for json when the tests are run with -3 -Wd.

15 years agoswitched the call order so this call works without suffering from issue #7774
Tarek Ziadé [Mon, 25 Jan 2010 23:19:56 +0000 (23:19 +0000)]
switched the call order so this call works without suffering from issue #7774

15 years agoAdd a news entry for the functions verify and vereq that have been removed in r77729...
Ezio Melotti [Mon, 25 Jan 2010 12:37:02 +0000 (12:37 +0000)]
Add a news entry for the functions verify and vereq that have been removed in r77729 and r77731

15 years ago#7775: fixed docstring for rpartition
Ezio Melotti [Mon, 25 Jan 2010 11:24:37 +0000 (11:24 +0000)]
#7775: fixed docstring for rpartition

15 years agoAdded a note about Event.is_set() syntax being new to 2.6
Facundo Batista [Mon, 25 Jan 2010 06:15:01 +0000 (06:15 +0000)]
Added a note about Event.is_set() syntax being new to 2.6

15 years agocompare types with is not ==
Benjamin Peterson [Mon, 25 Jan 2010 03:58:21 +0000 (03:58 +0000)]
compare types with is not ==

15 years agomention from_float() in error message
Benjamin Peterson [Mon, 25 Jan 2010 03:52:52 +0000 (03:52 +0000)]
mention from_float() in error message

15 years agofix an UnboundLocalError when the release file is empty #7773
Benjamin Peterson [Mon, 25 Jan 2010 03:31:13 +0000 (03:31 +0000)]
fix an UnboundLocalError when the release file is empty #7773

15 years ago#7269: fix failures in test_bsddb3. Patch by Florent Xicluna.
Ezio Melotti [Sun, 24 Jan 2010 21:47:59 +0000 (21:47 +0000)]
#7269: fix failures in test_bsddb3. Patch by Florent Xicluna.

15 years agoremove archaic functions from test_support
Ezio Melotti [Sun, 24 Jan 2010 20:48:35 +0000 (20:48 +0000)]
remove archaic functions from test_support

15 years agouse assert[Not]IsInstance where appropriate
Ezio Melotti [Sun, 24 Jan 2010 16:58:36 +0000 (16:58 +0000)]
use assert[Not]IsInstance where appropriate

15 years agoFixed #7748: now upload and register commands don't need to force the encoding anymor...
Tarek Ziadé [Sun, 24 Jan 2010 00:33:32 +0000 (00:33 +0000)]
Fixed #7748: now upload and register commands don't need to force the encoding anymore : DistributionMetada returns utf8 strings

15 years agouse assert[Not]In where appropriate
Ezio Melotti [Sat, 23 Jan 2010 23:04:36 +0000 (23:04 +0000)]
use assert[Not]In where appropriate

15 years agodtoa.c fix from upstream that fixes incorrectly rounded results for certain subnormal...
Mark Dickinson [Sat, 23 Jan 2010 21:25:53 +0000 (21:25 +0000)]
dtoa.c fix from upstream that fixes incorrectly rounded results for certain subnormals that are also halfway cases.

15 years agoIssue #7743: Add checks for zero inputs to the lshift and mult functions;
Mark Dickinson [Sat, 23 Jan 2010 20:48:56 +0000 (20:48 +0000)]
Issue #7743:  Add checks for zero inputs to the lshift and mult functions;
this fixes the first bug described in issue #7743.

15 years agofixed the 64bits tests for get_platform() - mac osx
Tarek Ziadé [Sat, 23 Jan 2010 17:52:57 +0000 (17:52 +0000)]
fixed the 64bits tests for get_platform() - mac osx

15 years agoIncreased the overflow value on test_dealloc to make sure that it is big enough even...
Ezio Melotti [Sat, 23 Jan 2010 10:43:05 +0000 (10:43 +0000)]
Increased the overflow value on test_dealloc to make sure that it is big enough even for wide builds.

15 years agotaking sysconfig out of distutils
Tarek Ziadé [Sat, 23 Jan 2010 09:23:15 +0000 (09:23 +0000)]
taking sysconfig out of distutils

15 years ago#7725: fix referencing issue.
Georg Brandl [Sat, 23 Jan 2010 08:47:54 +0000 (08:47 +0000)]
#7725: fix referencing issue.

15 years ago#7762: fix refcount annotation of PyUnicode_Tailmatch().
Georg Brandl [Sat, 23 Jan 2010 08:43:31 +0000 (08:43 +0000)]
#7762: fix refcount annotation of PyUnicode_Tailmatch().

15 years agoIssue #7743: Fix a potential incorrect rounding bug in dtoa.c (2nd bug
Mark Dickinson [Fri, 22 Jan 2010 17:04:07 +0000 (17:04 +0000)]
Issue #7743:  Fix a potential incorrect rounding bug in dtoa.c (2nd bug
in issue 7743).

15 years agoThis should fix the failure introduced in r77680. The error message is now different...
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.

15 years agoCorrect typo in comment.
Mark Dickinson [Fri, 22 Jan 2010 16:18:09 +0000 (16:18 +0000)]
Correct typo in comment.

15 years ago- Expat: Fix DoS via XML document with malformed UTF-8 sequences
Matthias Klose [Fri, 22 Jan 2010 00:39:04 +0000 (00:39 +0000)]
- Expat: Fix DoS via XML document with malformed UTF-8 sequences
  (CVE_2009_3560).

15 years ago- Mention CVE-2009-3720 for change in r74429.
Matthias Klose [Fri, 22 Jan 2010 00:34:48 +0000 (00:34 +0000)]
- Mention CVE-2009-3720 for change in r74429.

15 years ago#7746: rephrase a sentence
Ezio Melotti [Thu, 21 Jan 2010 20:50:57 +0000 (20:50 +0000)]
#7746: rephrase a sentence

15 years agoUse // for floor division.
Mark Dickinson [Thu, 21 Jan 2010 19:58:41 +0000 (19:58 +0000)]
Use // for floor division.

15 years agoAdd two more test_strtod test values.
Mark Dickinson [Thu, 21 Jan 2010 18:32:27 +0000 (18:32 +0000)]
Add two more test_strtod test values.

15 years agoAdditional testcases for strtod.
Mark Dickinson [Thu, 21 Jan 2010 17:02:53 +0000 (17:02 +0000)]
Additional testcases for strtod.

15 years agoAdditional explanatory comments for _Py_dg_strtod.
Mark Dickinson [Wed, 20 Jan 2010 21:23:25 +0000 (21:23 +0000)]
Additional explanatory comments for _Py_dg_strtod.

15 years agoDon't try to put a value into a NULL pointer.
Mark Dickinson [Wed, 20 Jan 2010 18:02:41 +0000 (18:02 +0000)]
Don't try to put a value into a NULL pointer.

15 years agoVarious dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing code
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.

15 years agoRevert debugprint code in r77607.
Gregory P. Smith [Tue, 19 Jan 2010 08:25:26 +0000 (08:25 +0000)]
Revert debugprint code in r77607.

15 years agoDo not compile stubs for the sha2 series hashes in the openssl hashlib
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.

15 years agoAdd a pydebug mode only debug print to help debug the errors in
Gregory P. Smith [Tue, 19 Jan 2010 08:01:00 +0000 (08:01 +0000)]
Add a pydebug mode only debug print to help debug the errors in

 http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/

Will be removed shortly.

15 years agodata descriptors do not override the class dictionary if __get__ is not defined
Benjamin Peterson [Mon, 18 Jan 2010 23:07:56 +0000 (23:07 +0000)]
data descriptors do not override the class dictionary if __get__ is not defined

Adjust documentation and add a test to verify this behavior.

See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
discussion.

15 years agoAdd a NEWS entry for r77599 and r77600.
Antoine Pitrou [Mon, 18 Jan 2010 21:15:21 +0000 (21:15 +0000)]
Add a NEWS entry for r77599 and r77600.

15 years agoAdd ccbench to the Tools directory
Antoine Pitrou [Mon, 18 Jan 2010 21:10:31 +0000 (21:10 +0000)]
Add ccbench to the Tools directory

15 years agoAdd iobench to the Tools directory (see December python-dev discussion)
Antoine Pitrou [Mon, 18 Jan 2010 21:04:00 +0000 (21:04 +0000)]
Add iobench to the Tools directory (see December python-dev discussion)

15 years ago#7730: remove spaces after functions names
Ezio Melotti [Mon, 18 Jan 2010 09:10:26 +0000 (09:10 +0000)]
#7730: remove spaces after functions names

15 years agoFix internal reference.
Georg Brandl [Sun, 17 Jan 2010 23:33:53 +0000 (23:33 +0000)]
Fix internal reference.

15 years agoIssue #7632: When Py_USING_MEMORY_DEBUGGER is defined, disable the
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.

Patch by Stefan Krah.

15 years agoExplicitly use /usr/bin/arch on OSX, fixes issue 7715
Ronald Oussoren [Sun, 17 Jan 2010 19:32:00 +0000 (19:32 +0000)]
Explicitly use /usr/bin/arch on OSX, fixes issue 7715

15 years agoThis patch ensures that the configure-script mentions checking for --enable-universalsdk
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.

15 years ago- Issue #7658: Ensure that the new pythonw executable works on OSX 10.4
Ronald Oussoren [Sun, 17 Jan 2010 16:25:57 +0000 (16:25 +0000)]
- Issue #7658: Ensure that the new pythonw executable works on OSX 10.4

- Issue #7714: Use ``gcc -dumpversion`` to detect the version of GCC on
  MacOSX.

- Make configure look for util.h as well as libutil.h. The former
  is the header file that on OSX contains the defition of openpty.

  (Needed to compile for OSX 10.4 on OSX 10.6)

- Use the correct definition of CC to compile the pythonw executable

15 years agoUse PyAPI_DATA.
Antoine Pitrou [Sun, 17 Jan 2010 15:55:45 +0000 (15:55 +0000)]
Use PyAPI_DATA.

15 years agoIssue #7632: Fix a memory leak in _Py_dg_strtod.
Mark Dickinson [Sun, 17 Jan 2010 13:37:57 +0000 (13:37 +0000)]
Issue #7632: Fix a memory leak in _Py_dg_strtod.

15 years agoAdd text to Mac/README to warn about non-universal libraries when
Ronald Oussoren [Sun, 17 Jan 2010 12:38:11 +0000 (12:38 +0000)]
Add text to Mac/README to warn about non-universal libraries when
building a universal Python. Based on issue7679.

15 years agoIssue #7561: Operations on empty bytearrays (such as `int(bytearray())`)
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.

15 years agoAdd note about usage of STRINGLIB_EMPTY.
Georg Brandl [Sun, 17 Jan 2010 12:14:42 +0000 (12:14 +0000)]
Add note about usage of STRINGLIB_EMPTY.

15 years agoIncrease number of strtod tests slightly, to make it more likely that a memory leak...
Mark Dickinson [Sun, 17 Jan 2010 11:10:03 +0000 (11:10 +0000)]
Increase number of strtod tests slightly, to make it more likely that a memory leak is detected.

15 years ago#7699: improve datetime docs: straightforward linking to strftime/strptime section...
Georg Brandl [Sun, 17 Jan 2010 08:42:30 +0000 (08:42 +0000)]
#7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.

15 years agoAdd better error reporting for MemoryErrors caused by str->float conversions.
Mark Dickinson [Sat, 16 Jan 2010 20:33:02 +0000 (20:33 +0000)]
Add better error reporting for MemoryErrors caused by str->float conversions.

15 years agoremove wrong markup
Ezio Melotti [Sat, 16 Jan 2010 19:36:42 +0000 (19:36 +0000)]
remove wrong markup

15 years agotypo: use one instead instead of two
Ezio Melotti [Sat, 16 Jan 2010 18:38:01 +0000 (18:38 +0000)]
typo: use one instead instead of two

15 years agoFix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires an unsigne...
Mark Dickinson [Sat, 16 Jan 2010 18:06:17 +0000 (18:06 +0000)]
Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires an unsigned long and the other a signed long.  See also r77421.

15 years agoIssue #7632: Fix one more case of incorrect rounding for str -> float
Mark Dickinson [Sat, 16 Jan 2010 17:57:49 +0000 (17:57 +0000)]
Issue #7632: Fix one more case of incorrect rounding for str -> float
conversion (see bug 5 in the issue tracker).

15 years agoFollowup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunk
Antoine Pitrou [Sat, 16 Jan 2010 17:45:56 +0000 (17:45 +0000)]
Followup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunk
nor in py3k).  Patch by Florent Xicluna as well as additional tests.

15 years agoFix issue number in comment.
R. David Murray [Sat, 16 Jan 2010 16:08:32 +0000 (16:08 +0000)]
Fix issue number in comment.

15 years agoIssue #7632: Fix a serious wrong output bug for string -> float conversion.
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.

15 years agoIssue #1670765: Prevent email.generator.Generator from re-wrapping
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.

15 years agoissue5063: Fixes for building RPM on CentOS plus misc .spec file enhancements.
Sean Reifscheider [Sat, 16 Jan 2010 04:27:58 +0000 (04:27 +0000)]
issue5063: Fixes for building RPM on CentOS plus misc .spec file enhancements.

15 years agoFixed issue-number mistake in NEWS update.
Vinay Sajip [Fri, 15 Jan 2010 23:27:05 +0000 (23:27 +0000)]
Fixed issue-number mistake in NEWS update.

15 years agotry to fix for windows
Benjamin Peterson [Fri, 15 Jan 2010 02:26:07 +0000 (02:26 +0000)]
try to fix for windows

15 years agoRemove C++/C99-style comments.
Brett Cannon [Fri, 15 Jan 2010 01:31:45 +0000 (01:31 +0000)]
Remove C++/C99-style comments.

15 years agoIssue #7701: Fix crash in binascii.b2a_uu() in debug mode when given a
Antoine Pitrou [Fri, 15 Jan 2010 00:18:00 +0000 (00:18 +0000)]
Issue #7701: Fix crash in binascii.b2a_uu() in debug mode when given a
1-byte argument.  Patch by Victor Stinner.

15 years agoThe silencing of DeprecationWarning was not taking -3 into consideration. Since
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.

15 years agoIssue #3299: Fix possible crash in the _sre module when given bad
Antoine Pitrou [Thu, 14 Jan 2010 17:25:24 +0000 (17:25 +0000)]
Issue #3299: Fix possible crash in the _sre module when given bad
argument values in debug mode.  Patch by Victor Stinner.

15 years agoIssue #7703: Add support for the new buffer API to functions of the
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.

15 years agoIssue #7632: add tests for bugs fixed so far.
Mark Dickinson [Thu, 14 Jan 2010 15:22:33 +0000 (15:22 +0000)]
Issue #7632:  add tests for bugs fixed so far.

15 years agoIssue 7632: fix incorrect rounding for long input strings with values very close...
Mark Dickinson [Thu, 14 Jan 2010 14:40:20 +0000 (14:40 +0000)]
Issue 7632:  fix incorrect rounding for long input strings with values very close to a power of 2.  (See Bug 4 in the tracker discussion.)