Commit Graph

13532 Commits

Author SHA1 Message Date
Brett Cannon 2005050152 Remove a tuple unpacking in a parameter list to suppress the SyntaxWarning with
-3.
2008-08-02 03:13:46 +00:00
Brett Cannon 52597be2a1 Remove a use of callable() to silence the warning triggered under -3. 2008-08-01 01:45:49 +00:00
Brett Cannon f5eb2ff100 Silence (Syntax|Deprecation)Warning for 'inspect'. Had to remove tuple
unpacking in a parameter list and set some constants by hand that were pulled
from the 'compiler' package.
2008-08-01 01:40:24 +00:00
Brett Cannon c6a30ecf7a Remove use of tuple unpacking and dict.has_key() so as to silence
SyntaxWarning as triggered by -3.
2008-08-01 01:36:47 +00:00
Brett Cannon 791ec1fc13 Remove assignment to True/False to silence the SyntaxWarning that is triggered
by -3.
2008-08-01 01:34:05 +00:00
Brett Cannon 5400b6b2e2 Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module. 2008-08-01 01:21:50 +00:00
Amaury Forgeot d'Arc 06847b13ca Correct a crash when two successive unicode allocations fail with a MemoryError:
the freelist contained half-initialized objects with freed pointers.

The comment
/* XXX UNREF/NEWREF interface should be more symmetrical */
was copied from tupleobject.c, and appears in some other places.
I sign the petition.
2008-07-31 23:39:05 +00:00
Amaury Forgeot d'Arc ad9604003c Remove a dummy test that was checked in by mistake 2008-07-31 21:35:03 +00:00
Amaury Forgeot d'Arc 39fd672dfe #3479: unichr(2**32) used to return u'\x00'.
The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int.

(why doesn't gcc issue a truncation warning in this case?)
2008-07-31 21:28:03 +00:00
Neal Norwitz e7d8be80ba Security patches from Apple: prevent int overflow when allocating memory 2008-07-31 17:17:14 +00:00
Benjamin Peterson e70f8e1205 remove usage of MacOS from Tkinter 2008-07-31 15:15:45 +00:00
Mark Dickinson 0f6414a0d6 Rename testSum to testFsum and move it to proper place in test_math.py 2008-07-31 14:48:32 +00:00
Brett Cannon cda5ce24ed Backport test.support.fcmp() from 3.0 to silence -3 warnings. 2008-07-31 03:00:53 +00:00
Raymond Hettinger f080e6d7e0 Alter recipe to show how to call izip_longest() with
both a keyword argument and star arguments.
2008-07-31 01:19:50 +00:00
Amaury Forgeot d'Arc 246daedd11 #2542: now that issubclass() may call arbitrary code,
make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there.
2008-07-31 00:42:16 +00:00
Benjamin Peterson b8827c00b8 I mess up again; BufferError inherits StandardError 2008-07-30 23:49:28 +00:00
Benjamin Peterson 67ebfefef5 add BufferError to the exception hieracrchy 2008-07-30 19:35:27 +00:00
Mark Dickinson fef6b13c32 Rename math.sum to math.fsum 2008-07-30 16:20:10 +00:00
Benjamin Peterson f2eb2b44fc getrandombits is actually getrandbits 2008-07-30 13:46:53 +00:00
Raymond Hettinger efdf706a9f Neaten-up the itertools recipes. 2008-07-30 07:27:30 +00:00
Mark Dickinson ff5f16e4e5 More modifications to tests for math.sum: replace the Python
version of msum by a version using a different algorithm, and
use the new float.fromhex method to specify test results exactly.
2008-07-29 18:45:38 +00:00
Jesus Cea cde8cdd898 Be less strict with replication timeouts (the machine
can be a bit loaded), and be sure to yield the CPU
when waiting.
2008-07-29 16:16:23 +00:00
Jesus Cea a99363f472 Refinements in the bsddb testsuite 2008-07-29 13:38:50 +00:00
Benjamin Peterson 01a24322ec backport r65264 2008-07-28 23:35:27 +00:00
Mark Dickinson 3e9c60c5fe Remove math.sum tests related to overflow, special values, and behaviour
near the extremes of the floating-point range.  (The behaviour of math.sum
should be regarded as undefined in these cases.)
2008-07-27 07:15:29 +00:00
Mark Dickinson fe84cce668 Issue #3449: Update decimal module to use most recent specification
(v. 1.68) and tests (v. 2.58) from IBM.
2008-07-27 06:39:07 +00:00
Skip Montanaro 1ef19f0de1 Close issue 3437 - missing state change when Allow lines are processed.
Adds test cases which use Allow: as well.
2008-07-27 00:49:02 +00:00
Antoine Pitrou 36897e1ff9 disable some failing tests in test_locale due to a bug in locale.py.
this should fix the failures on the solaris buildbot.
2008-07-26 13:49:13 +00:00
Antoine Pitrou 6327e8482e Fix more buildbot failures on test_locale. 2008-07-26 11:56:37 +00:00
Antoine Pitrou 524f4135dc try to fix most buildbot failures on test_locale + add a debug output for the solaris buildbot 2008-07-26 10:29:43 +00:00
Antoine Pitrou ba54edadb3 convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222) 2008-07-25 20:40:19 +00:00
Antoine Pitrou 5fdfa3e36d #3394: zipfile.writestr doesn't set external attributes, so files are extracted mode 000 on Unix 2008-07-25 19:42:26 +00:00
Raymond Hettinger 8c664e8628 Issue 1592: Better error reporting for operations on closed shelves. 2008-07-25 18:43:33 +00:00
Antoine Pitrou 4982d5d04a #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions 2008-07-25 17:45:59 +00:00
Benjamin Peterson c6ad794051 use isinstance 2008-07-23 13:25:06 +00:00
Jesus Cea c5a11fabdb bsddb module updated to version 4.7.2devel9.
This patch publishes the work done until now
for Python 3.0 compatibility. Still a lot
to be done.

When possible, we use 3.0 features in Python 2.6,
easing development and testing, and exposing internal
changes to a wider audience, for better test coverage.

Some mode details:
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
2008-07-23 11:38:42 +00:00
Benjamin Peterson 30e208d525 remove unneeded import 2008-07-22 23:44:37 +00:00
Benjamin Peterson f5574a0c29 don't use assert statement 2008-07-21 22:05:34 +00:00
Amaury Forgeot d'Arc e4921fec01 Issue2378: pdb would delete free variables when stepping into a class statement.
The problem was introduced by r53954, the correction is to restore the symmetry between
PyFrame_FastToLocals and PyFrame_LocalsToFast
2008-07-21 22:00:38 +00:00
Facundo Batista f3f67599fe Issue 3396. Fixed the autocompletion of 'int.', and worked
a little that part of the code, fixing a detail and enhancing
a bit others.
2008-07-21 14:28:17 +00:00
Georg Brandl fa267829e7 Save the whole of sys.modules instead of using an import tracker.
This, when merged to py3k, will fix the spurious buildbot failure
in test_urllib2 ("<urlopen error unknown url type: do>").
2008-07-20 23:18:55 +00:00
Neal Norwitz be3ff9cdc9 Fix misspeeld method name (negative) 2008-07-20 20:39:36 +00:00
Georg Brandl 61d5c43011 Remove exception indexing in asyncore. 2008-07-20 07:29:58 +00:00
Raymond Hettinger f1f46f0350 Clean-up itertools docs and recipes. 2008-07-19 23:58:47 +00:00
Raymond Hettinger 39e0eb766f Fix compress() recipe in docs to use itertools. 2008-07-19 23:21:57 +00:00
Benjamin Peterson 0147a761b1 Merged revisions 65137 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r65137 | georg.brandl | 2008-07-19 08:32:57 -0500 (Sat, 19 Jul 2008) | 2 lines

  #3334: correctly set prefix of imports.
........
2008-07-19 14:14:06 +00:00
Georg Brandl 59ec315b04 #3319: don't raise ZeroDivisionError if number of rounds is so
low that benchtime is zero.
2008-07-19 13:00:22 +00:00
Georg Brandl 278fc50c07 #3303: fix crash with invalid Py_DECREF in strcoll(). 2008-07-19 12:46:12 +00:00
Raymond Hettinger 3369167089 Add recipe to the itertools docs. 2008-07-19 00:43:00 +00:00
Raymond Hettinger 3c212163ec Improve accuracy of gamma test function 2008-07-19 00:42:03 +00:00