]> granicus.if.org Git - python/log
python
16 years agoTone down math.fsum warning.
Mark Dickinson [Fri, 1 Aug 2008 09:13:07 +0000 (09:13 +0000)]
Tone down math.fsum warning.

16 years agoRemove a use of callable() to silence the warning triggered under -3.
Brett Cannon [Fri, 1 Aug 2008 01:45:49 +0000 (01:45 +0000)]
Remove a use of callable() to silence the warning triggered under -3.

16 years agoSilence (Syntax|Deprecation)Warning for 'inspect'. Had to remove tuple
Brett Cannon [Fri, 1 Aug 2008 01:40:24 +0000 (01:40 +0000)]
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.

16 years agoRemove use of tuple unpacking and dict.has_key() so as to silence
Brett Cannon [Fri, 1 Aug 2008 01:36:47 +0000 (01:36 +0000)]
Remove use of tuple unpacking and dict.has_key() so as to silence
SyntaxWarning as triggered by -3.

16 years agoRemove assignment to True/False to silence the SyntaxWarning that is triggered
Brett Cannon [Fri, 1 Aug 2008 01:34:05 +0000 (01:34 +0000)]
Remove assignment to True/False to silence the SyntaxWarning that is triggered
by -3.

16 years agoFix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
Brett Cannon [Fri, 1 Aug 2008 01:21:50 +0000 (01:21 +0000)]
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.

16 years agoCorrect a crash when two successive unicode allocations fail with a MemoryError:
Amaury Forgeot d'Arc [Thu, 31 Jul 2008 23:39:05 +0000 (23:39 +0000)]
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.

16 years agoRemove a dummy test that was checked in by mistake
Amaury Forgeot d'Arc [Thu, 31 Jul 2008 21:35:03 +0000 (21:35 +0000)]
Remove a dummy test that was checked in by mistake

16 years ago#3479: unichr(2**32) used to return u'\x00'.
Amaury Forgeot d'Arc [Thu, 31 Jul 2008 21:28:03 +0000 (21:28 +0000)]
#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?)

16 years agoSecurity patches from Apple: prevent int overflow when allocating memory
Neal Norwitz [Thu, 31 Jul 2008 17:17:14 +0000 (17:17 +0000)]
Security patches from Apple:  prevent int overflow when allocating memory

16 years agoremove usage of MacOS from Tkinter
Benjamin Peterson [Thu, 31 Jul 2008 15:15:45 +0000 (15:15 +0000)]
remove usage of MacOS from Tkinter

16 years agoRename testSum to testFsum and move it to proper place in test_math.py
Mark Dickinson [Thu, 31 Jul 2008 14:48:32 +0000 (14:48 +0000)]
Rename testSum to testFsum and move it to proper place in test_math.py

16 years agoBackport test.support.fcmp() from 3.0 to silence -3 warnings.
Brett Cannon [Thu, 31 Jul 2008 03:00:53 +0000 (03:00 +0000)]
Backport test.support.fcmp() from 3.0 to silence -3 warnings.

16 years agoAlter recipe to show how to call izip_longest() with
Raymond Hettinger [Thu, 31 Jul 2008 01:19:50 +0000 (01:19 +0000)]
Alter recipe to show how to call izip_longest() with
both a keyword argument and star arguments.

16 years ago#2542: now that issubclass() may call arbitrary code,
Amaury Forgeot d'Arc [Thu, 31 Jul 2008 00:42:16 +0000 (00:42 +0000)]
#2542: now that issubclass() may call arbitrary code,
make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there.

16 years agoI mess up again; BufferError inherits StandardError
Benjamin Peterson [Wed, 30 Jul 2008 23:49:28 +0000 (23:49 +0000)]
I mess up again; BufferError inherits StandardError

16 years agoAdd note about problems with math.fsum on x86 hardware.
Mark Dickinson [Wed, 30 Jul 2008 20:23:15 +0000 (20:23 +0000)]
Add note about problems with math.fsum on x86 hardware.

16 years agoadd BufferError to the exception hieracrchy
Benjamin Peterson [Wed, 30 Jul 2008 19:35:27 +0000 (19:35 +0000)]
add BufferError to the exception hieracrchy

16 years agobackport r64751
Benjamin Peterson [Wed, 30 Jul 2008 17:45:10 +0000 (17:45 +0000)]
backport r64751

16 years agoReplace math.sum with math.fsum in a couple of comments
Mark Dickinson [Wed, 30 Jul 2008 16:25:16 +0000 (16:25 +0000)]
Replace math.sum with math.fsum in a couple of comments
that were missed by r65308

16 years agoRename math.sum to math.fsum
Mark Dickinson [Wed, 30 Jul 2008 16:20:10 +0000 (16:20 +0000)]
Rename math.sum to math.fsum

16 years agogetrandombits is actually getrandbits
Benjamin Peterson [Wed, 30 Jul 2008 13:46:53 +0000 (13:46 +0000)]
getrandombits is actually getrandbits

16 years agoFix special-value handling for math.sum.
Mark Dickinson [Wed, 30 Jul 2008 12:01:41 +0000 (12:01 +0000)]
Fix special-value handling for math.sum.
Also minor cleanups to the code: fix tabbing, remove
trailing whitespace, and reformat to fit into 80
columns.

16 years agoNeaten-up the itertools recipes.
Raymond Hettinger [Wed, 30 Jul 2008 07:27:30 +0000 (07:27 +0000)]
Neaten-up the itertools recipes.

16 years agothe from __future__ import with_statement isn't needed in 2.6
Benjamin Peterson [Tue, 29 Jul 2008 19:28:49 +0000 (19:28 +0000)]
the from __future__ import  with_statement isn't needed in 2.6

16 years agoMore modifications to tests for math.sum: replace the Python
Mark Dickinson [Tue, 29 Jul 2008 18:45:38 +0000 (18:45 +0000)]
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.

16 years agoBe less strict with replication timeouts (the machine
Jesus Cea [Tue, 29 Jul 2008 16:16:23 +0000 (16:16 +0000)]
Be less strict with replication timeouts (the machine
can be a bit loaded), and be sure to yield the CPU
when waiting.

16 years agoRefinements in the bsddb testsuite
Jesus Cea [Tue, 29 Jul 2008 13:38:50 +0000 (13:38 +0000)]
Refinements in the bsddb testsuite

16 years agobackport r65264
Benjamin Peterson [Mon, 28 Jul 2008 23:35:27 +0000 (23:35 +0000)]
backport r65264

16 years agoClarify wording
Andrew M. Kuchling [Mon, 28 Jul 2008 17:04:48 +0000 (17:04 +0000)]
Clarify wording

16 years agoclarify Popen argument
Benjamin Peterson [Sun, 27 Jul 2008 15:22:14 +0000 (15:22 +0000)]
clarify Popen argument

16 years agoRemove math.sum tests related to overflow, special values, and behaviour
Mark Dickinson [Sun, 27 Jul 2008 07:15:29 +0000 (07:15 +0000)]
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.)

16 years agoIssue #3449: Update decimal module to use most recent specification
Mark Dickinson [Sun, 27 Jul 2008 06:39:07 +0000 (06:39 +0000)]
Issue #3449: Update decimal module to use most recent specification
(v. 1.68) and tests (v. 2.58) from IBM.

16 years agonote robotparser bug fix.
Skip Montanaro [Sun, 27 Jul 2008 00:50:41 +0000 (00:50 +0000)]
note robotparser bug fix.

16 years agoClose issue 3437 - missing state change when Allow lines are processed.
Skip Montanaro [Sun, 27 Jul 2008 00:49:02 +0000 (00:49 +0000)]
Close issue 3437 - missing state change when Allow lines are processed.
Adds test cases which use Allow: as well.

16 years agoShorten some overlong lines.
Georg Brandl [Sat, 26 Jul 2008 22:13:29 +0000 (22:13 +0000)]
Shorten some overlong lines.

16 years agodisable some failing tests in test_locale due to a bug in locale.py.
Antoine Pitrou [Sat, 26 Jul 2008 13:49:13 +0000 (13:49 +0000)]
disable some failing tests in test_locale due to a bug in locale.py.
this should fix the failures on the solaris buildbot.

16 years agoRemove extra words
Andrew M. Kuchling [Sat, 26 Jul 2008 13:09:06 +0000 (13:09 +0000)]
Remove extra words

16 years agoThis sentence continues to bug me; rewrite it for the second time
Andrew M. Kuchling [Sat, 26 Jul 2008 13:08:19 +0000 (13:08 +0000)]
This sentence continues to bug me; rewrite it for the second time

16 years agoFix more buildbot failures on test_locale.
Antoine Pitrou [Sat, 26 Jul 2008 11:56:37 +0000 (11:56 +0000)]
Fix more buildbot failures on test_locale.

16 years agotry to fix most buildbot failures on test_locale + add a debug output for the solaris...
Antoine Pitrou [Sat, 26 Jul 2008 10:29:43 +0000 (10:29 +0000)]
try to fix most buildbot failures on test_locale + add a debug output for the solaris buildbot

16 years agoadd a NEWS entry
Antoine Pitrou [Fri, 25 Jul 2008 22:22:08 +0000 (22:22 +0000)]
add a NEWS entry

16 years agoRaymond's patch for #1819: speedup function calls with named parameters
Antoine Pitrou [Fri, 25 Jul 2008 22:13:52 +0000 (22:13 +0000)]
Raymond's patch for #1819: speedup function calls with named parameters
(35% faster according to pybench)

16 years agoadd a pybench test for complex function calls (part of #1819)
Antoine Pitrou [Fri, 25 Jul 2008 22:02:07 +0000 (22:02 +0000)]
add a pybench test for complex function calls (part of #1819)

16 years agofix indentation
Benjamin Peterson [Fri, 25 Jul 2008 21:59:53 +0000 (21:59 +0000)]
fix indentation

16 years agoconvert test_locale to unittest, and add a mechanism to override localconv() results...
Antoine Pitrou [Fri, 25 Jul 2008 20:40:19 +0000 (20:40 +0000)]
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)

16 years ago#3394: zipfile.writestr doesn't set external attributes, so files are extracted mode...
Antoine Pitrou [Fri, 25 Jul 2008 19:42:26 +0000 (19:42 +0000)]
#3394: zipfile.writestr doesn't set external attributes, so files are extracted mode 000 on Unix

16 years agoIssue 1592: Better error reporting for operations on closed shelves.
Raymond Hettinger [Fri, 25 Jul 2008 18:43:33 +0000 (18:43 +0000)]
Issue 1592:  Better error reporting for operations on closed shelves.

16 years ago#2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions
Antoine Pitrou [Fri, 25 Jul 2008 17:45:59 +0000 (17:45 +0000)]
#2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions

16 years agodocument default value for fillvalue
Benjamin Peterson [Fri, 25 Jul 2008 17:02:11 +0000 (17:02 +0000)]
document default value for fillvalue

16 years agoteach .bzrignore about doc tools
Benjamin Peterson [Fri, 25 Jul 2008 16:55:37 +0000 (16:55 +0000)]
teach .bzrignore about doc tools

16 years agoMake ctypes compatible with Python 2.3, 2.4, and 2.5 again.
Thomas Heller [Thu, 24 Jul 2008 11:16:45 +0000 (11:16 +0000)]
Make ctypes compatible with Python 2.3, 2.4, and 2.5 again.

16 years agoFix indentation.
Georg Brandl [Thu, 24 Jul 2008 07:09:21 +0000 (07:09 +0000)]
Fix indentation.

16 years agoConvert from long to Py_ssize_t.
Raymond Hettinger [Thu, 24 Jul 2008 07:04:55 +0000 (07:04 +0000)]
Convert from long to Py_ssize_t.

16 years agoFinish conversion from int to Py_ssize_t.
Raymond Hettinger [Thu, 24 Jul 2008 05:38:48 +0000 (05:38 +0000)]
Finish conversion from int to Py_ssize_t.

16 years agoadd some documentation for 2to3
Benjamin Peterson [Thu, 24 Jul 2008 02:45:37 +0000 (02:45 +0000)]
add some documentation for 2to3

16 years agofix markup
Benjamin Peterson [Thu, 24 Jul 2008 02:31:28 +0000 (02:31 +0000)]
fix markup

16 years agofix spacing
Benjamin Peterson [Thu, 24 Jul 2008 02:27:46 +0000 (02:27 +0000)]
fix spacing

16 years agoParse to the correct datatype.
Raymond Hettinger [Thu, 24 Jul 2008 00:53:49 +0000 (00:53 +0000)]
Parse to the correct datatype.

16 years agoFinish-up the partial conversion from int to Py_ssize_t for deque indices and length.
Raymond Hettinger [Thu, 24 Jul 2008 00:08:18 +0000 (00:08 +0000)]
Finish-up the partial conversion from int to Py_ssize_t for deque indices and length.

16 years agoUse correct indentation.
Georg Brandl [Wed, 23 Jul 2008 16:00:44 +0000 (16:00 +0000)]
Use correct indentation.

16 years agoMove opcode handling to Python's extension.
Georg Brandl [Wed, 23 Jul 2008 15:17:09 +0000 (15:17 +0000)]
Move opcode handling to Python's extension.

16 years ago3k-warn about parser's "ast" aliases.
Georg Brandl [Wed, 23 Jul 2008 15:16:45 +0000 (15:16 +0000)]
3k-warn about parser's "ast" aliases.

16 years agouse isinstance
Benjamin Peterson [Wed, 23 Jul 2008 13:25:06 +0000 (13:25 +0000)]
use isinstance

16 years agobsddb module updated to version 4.7.2devel9.
Jesus Cea [Wed, 23 Jul 2008 11:38:42 +0000 (11:38 +0000)]
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

16 years agoremove unneeded import
Benjamin Peterson [Tue, 22 Jul 2008 23:44:37 +0000 (23:44 +0000)]
remove unneeded import

16 years agoOne more attribution.
Raymond Hettinger [Tue, 22 Jul 2008 19:18:50 +0000 (19:18 +0000)]
One more attribution.

16 years agoFix credits for math.sum()
Raymond Hettinger [Tue, 22 Jul 2008 19:03:05 +0000 (19:03 +0000)]
Fix credits for math.sum()

16 years agoTuples now have both count() and index().
Raymond Hettinger [Tue, 22 Jul 2008 19:00:47 +0000 (19:00 +0000)]
Tuples now have both count() and index().

16 years agoRemove out-of-date section on Exact/Inexact.
Raymond Hettinger [Tue, 22 Jul 2008 18:54:02 +0000 (18:54 +0000)]
Remove out-of-date section on Exact/Inexact.

16 years agoFix build issue on OSX 10.4, somehow this wasn't committed before.
Ronald Oussoren [Tue, 22 Jul 2008 07:06:33 +0000 (07:06 +0000)]
Fix build issue on OSX 10.4, somehow this wasn't committed before.

16 years agoFix buglet in fix for issue3381
Ronald Oussoren [Tue, 22 Jul 2008 07:06:00 +0000 (07:06 +0000)]
Fix buglet in fix for issue3381

16 years agoIssue #2620: Overflow checking when allocating or reallocating memory
Gregory P. Smith [Tue, 22 Jul 2008 04:46:32 +0000 (04:46 +0000)]
Issue #2620: Overflow checking when allocating or reallocating memory
was not always being done properly in some python types and extension
modules.  PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
all been updated to perform better checks and places in the code that
would previously leak memory on the error path when such an allocation
failed have been fixed.

16 years agodon't use assert statement
Benjamin Peterson [Mon, 21 Jul 2008 22:05:34 +0000 (22:05 +0000)]
don't use assert statement

16 years agoIssue2378: pdb would delete free variables when stepping into a class statement.
Amaury Forgeot d'Arc [Mon, 21 Jul 2008 22:00:38 +0000 (22:00 +0000)]
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

16 years agoIncrement version number in NEWS file, and move items that were added after 2.6b2.
Amaury Forgeot d'Arc [Mon, 21 Jul 2008 21:36:24 +0000 (21:36 +0000)]
Increment version number in NEWS file, and move items that were added after 2.6b2.

(I thought there was a script to automate this kind of updates)

16 years agoOn Windows, silence a Purify warning and initialize the memory passed to CryptGenRandom.
Amaury Forgeot d'Arc [Mon, 21 Jul 2008 21:06:46 +0000 (21:06 +0000)]
On Windows, silence a Purify warning and initialize the memory passed to CryptGenRandom.
Since python doesn't provide any particular random data, it seems more reasonable anyway.

16 years agononlocal is not in 2.6.
Georg Brandl [Mon, 21 Jul 2008 18:26:21 +0000 (18:26 +0000)]
nonlocal is not in 2.6.

16 years agoIssue 3396. Fixed the autocompletion of 'int.', and worked
Facundo Batista [Mon, 21 Jul 2008 14:28:17 +0000 (14:28 +0000)]
Issue 3396. Fixed the autocompletion of 'int.', and worked
a little that part of the code, fixing a detail and enhancing
a bit others.

16 years agoSave the whole of sys.modules instead of using an import tracker.
Georg Brandl [Sun, 20 Jul 2008 23:18:55 +0000 (23:18 +0000)]
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>").

16 years agoFix misspeeld method name (negative)
Neal Norwitz [Sun, 20 Jul 2008 20:39:36 +0000 (20:39 +0000)]
Fix misspeeld method name (negative)

16 years agoFix a couple of names in error messages that were wrong
Neal Norwitz [Sun, 20 Jul 2008 19:35:23 +0000 (19:35 +0000)]
Fix a couple of names in error messages that were wrong

16 years ago#926501: add info where to put the docstring.
Georg Brandl [Sun, 20 Jul 2008 11:50:29 +0000 (11:50 +0000)]
#926501: add info where to put the docstring.

16 years agoRemove exception indexing in asyncore.
Georg Brandl [Sun, 20 Jul 2008 07:29:58 +0000 (07:29 +0000)]
Remove exception indexing in asyncore.

16 years agofix issue3120 - don't truncate handles on 64-bit Windows.
Gregory P. Smith [Sun, 20 Jul 2008 00:22:08 +0000 (00:22 +0000)]
fix issue3120 - don't truncate handles on 64-bit Windows.

This is still messy, realistically PC/_subprocess.c should never cast pointers
to python numbers and back at all.

I don't have a 64-bit windows build environment because microsoft apparently
thinks that should cost money.  Time to watch the buildbots.  It builds and
passes tests on 32-bit windows.

16 years agoClean-up itertools docs and recipes.
Raymond Hettinger [Sat, 19 Jul 2008 23:58:47 +0000 (23:58 +0000)]
Clean-up itertools docs and recipes.

16 years agoFix compress() recipe in docs to use itertools.
Raymond Hettinger [Sat, 19 Jul 2008 23:21:57 +0000 (23:21 +0000)]
Fix compress() recipe in docs to use itertools.

16 years ago#3322: bounds checking for _json.scanstring
Bob Ippolito [Sat, 19 Jul 2008 21:59:50 +0000 (21:59 +0000)]
#3322: bounds checking for _json.scanstring

16 years agoMerged revisions 65137 via svnmerge from
Benjamin Peterson [Sat, 19 Jul 2008 14:14:06 +0000 (14:14 +0000)]
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.
........

16 years agoAdd ordering info for findall and finditer.
Georg Brandl [Sat, 19 Jul 2008 13:48:44 +0000 (13:48 +0000)]
Add ordering info for findall and finditer.

16 years ago#3323: mention that if inheriting from a class without __slots__,
Georg Brandl [Sat, 19 Jul 2008 13:09:42 +0000 (13:09 +0000)]
#3323: mention that if inheriting from a class without __slots__,
the subclass will have a __dict__ available too.

16 years ago#3319: don't raise ZeroDivisionError if number of rounds is so
Georg Brandl [Sat, 19 Jul 2008 13:00:22 +0000 (13:00 +0000)]
#3319: don't raise ZeroDivisionError if number of rounds is so
low that benchtime is zero.

16 years ago#3303: fix crash with invalid Py_DECREF in strcoll().
Georg Brandl [Sat, 19 Jul 2008 12:46:12 +0000 (12:46 +0000)]
#3303: fix crash with invalid Py_DECREF in strcoll().

16 years ago#3302: fix segfaults when passing None for arguments that can't
Georg Brandl [Sat, 19 Jul 2008 12:39:10 +0000 (12:39 +0000)]
#3302: fix segfaults when passing None for arguments that can't
be NULL for the C functions.

16 years ago#3378: in case of no memory, don't leak even more memory. :)
Georg Brandl [Sat, 19 Jul 2008 10:08:55 +0000 (10:08 +0000)]
#3378: in case of no memory, don't leak even more memory. :)

16 years agoAdd recipe to the itertools docs.
Raymond Hettinger [Sat, 19 Jul 2008 00:43:00 +0000 (00:43 +0000)]
Add recipe to the itertools docs.

16 years agoImprove accuracy of gamma test function
Raymond Hettinger [Sat, 19 Jul 2008 00:42:03 +0000 (00:42 +0000)]
Improve accuracy of gamma test function

16 years agoFix issue 3411: default float format spec fails on negative numbers.
Eric Smith [Sat, 19 Jul 2008 00:24:05 +0000 (00:24 +0000)]
Fix issue 3411: default float format spec fails on negative numbers.

16 years agoDeprecate the sunaudio module for removal in Python 3.0. The sunau module can provide...
Brett Cannon [Fri, 18 Jul 2008 19:30:22 +0000 (19:30 +0000)]
Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality.

16 years ago#3390: replace a remaining has_key().
Georg Brandl [Fri, 18 Jul 2008 19:30:10 +0000 (19:30 +0000)]
#3390: replace a remaining has_key().