]>
granicus.if.org Git - python/log
Mark Dickinson [Mon, 4 Aug 2008 21:30:09 +0000 (21:30 +0000)]
Issue #
1481296 : (again!) Make conversion of a float NaN to an int or
long raise ValueError instead of returning 0. Also, change the error
message for conversion of an infinity to an integer, replacing 'long' by
'integer', so that it's appropriate for both long(float('inf')) and
int(float('inf')).
Brett Cannon [Mon, 4 Aug 2008 21:24:43 +0000 (21:24 +0000)]
Remove a use of callable() from Tkinter to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:23:07 +0000 (21:23 +0000)]
Remove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence
warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:19:41 +0000 (21:19 +0000)]
Remove usage of apply() in sqlite3 to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:17:15 +0000 (21:17 +0000)]
Remove dict.has_key() usage in the shelve module to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:10:50 +0000 (21:10 +0000)]
Remove dict.has_key() usage in xml.sax to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:07:59 +0000 (21:07 +0000)]
Remove the use of callable() in re to silence warnings under -3.
Gregory P. Smith [Mon, 4 Aug 2008 18:34:07 +0000 (18:34 +0000)]
more cleanup ups of the recently added warnings in the subprocess docs.
Nick Coghlan [Mon, 4 Aug 2008 12:47:17 +0000 (12:47 +0000)]
Add missing NEWS entry for r65487
Nick Coghlan [Mon, 4 Aug 2008 12:40:59 +0000 (12:40 +0000)]
Issue 643841: better documentation of the special method lookup process, especially for new-style classes. Also removes the warnings about not being authoritative for new-style classes - the language reference actually covers those fairly well now (albeit in a fashion that isn't always particularly easy to follow).
Gregory P. Smith [Mon, 4 Aug 2008 07:33:37 +0000 (07:33 +0000)]
Adds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls
key list data structure in the thread startup path.
This change is a companion to r60148 which already successfully dealt with a
similar issue on thread shutdown.
In particular this loop has been observed happening from this call path:
#0 in find_key ()
#1 in PyThread_set_key_value ()
#2 in _PyGILState_NoteThreadState ()
#3 in PyThreadState_New ()
#4 in t_bootstrap ()
#5 in pthread_start_thread ()
I don't know how this happens but it does, *very* rarely. On more than
one hardware platform. I have not been able to reproduce it manually.
(A flaky mutex implementation on the system in question is one hypothesis).
As with r60148, the spinning we managed to observe in the wild was due to a
single list element pointing back upon itself.
Georg Brandl [Mon, 4 Aug 2008 07:31:50 +0000 (07:31 +0000)]
Clarify the meaning of the select() parameters and sync
names with docstring.
Georg Brandl [Mon, 4 Aug 2008 07:23:29 +0000 (07:23 +0000)]
Template is always "tmp".
Georg Brandl [Mon, 4 Aug 2008 06:29:36 +0000 (06:29 +0000)]
Fix markup.
Andrew M. Kuchling [Mon, 4 Aug 2008 01:43:43 +0000 (01:43 +0000)]
Bug 3228: Explicitly supply the file mode to avoid creating executable files,
and add corresponding tests.
Possible 2.5 backport candidate
Gregory P. Smith [Mon, 4 Aug 2008 01:03:50 +0000 (01:03 +0000)]
issue1606: Add warnings to the subprocess documentation about common pitfalls
of using pipes that cause deadlocks.
Brett Cannon [Mon, 4 Aug 2008 00:50:11 +0000 (00:50 +0000)]
Remove assignment to True/False and use of dict.has_key() to silence warnings
while running under -3.
Brett Cannon [Mon, 4 Aug 2008 00:27:29 +0000 (00:27 +0000)]
Silence warnings under -3 about using dict.has_key() for modulefinder.
Brett Cannon [Mon, 4 Aug 2008 00:23:58 +0000 (00:23 +0000)]
Remove dict.has_key() usage in xml.dom.minidom to silence warnings while
running under -3.
Gregory P. Smith [Mon, 4 Aug 2008 00:13:29 +0000 (00:13 +0000)]
- Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword
argument in python 2.5, this broke code that subclassed Popen to include its
own poll method. Fixed my moving _deadstate to an _internal_poll method.
Brett Cannon [Mon, 4 Aug 2008 00:09:43 +0000 (00:09 +0000)]
Remove dict.has_key() and apply() usage from the logging package to silence
warnings when run under -3.
Brett Cannon [Sun, 3 Aug 2008 23:52:32 +0000 (23:52 +0000)]
Remove a use of callable() in fileinput to silence a -3 warning.
Brett Cannon [Sun, 3 Aug 2008 23:46:46 +0000 (23:46 +0000)]
Move filecmp from using dict.has_key() to dict.__contains__() to silence
warnings triggered under -3.
Brett Cannon [Sun, 3 Aug 2008 23:40:13 +0000 (23:40 +0000)]
Remove a dict.has_key() usage in email._parseaddr found while running -3.
Brett Cannon [Sun, 3 Aug 2008 23:27:32 +0000 (23:27 +0000)]
Remove Barry's love of deprecated syntax to silence warnings in the email
package, when run under -3, about using <>.
Brett Cannon [Sun, 3 Aug 2008 22:59:46 +0000 (22:59 +0000)]
Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3.
Brett Cannon [Sun, 3 Aug 2008 22:57:23 +0000 (22:57 +0000)]
Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered
under -3 through test_xmlrpc.
Brett Cannon [Sun, 3 Aug 2008 22:52:42 +0000 (22:52 +0000)]
Silence -3 warnings in pstats: a dict.has_key() usage and backport solution to
move from list.sort(cmp=) to key=.
Brett Cannon [Sun, 3 Aug 2008 22:38:19 +0000 (22:38 +0000)]
Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.
Brett Cannon [Sun, 3 Aug 2008 22:34:25 +0000 (22:34 +0000)]
Remove a use of list.sort(cmp=) to silence a -3 DeprecationWarning in
cookielib.
Georg Brandl [Sun, 3 Aug 2008 22:28:55 +0000 (22:28 +0000)]
Note the removal of several committers.
Georg Brandl [Sun, 3 Aug 2008 09:21:18 +0000 (09:21 +0000)]
#3495: use current version.
Brett Cannon [Sun, 3 Aug 2008 00:58:51 +0000 (00:58 +0000)]
Silence SyntaxWarning and DeprecationWarning in pydoc triggered by tuple
unpacking in parameter lists and using callable(). Found through -3.
Brett Cannon [Sun, 3 Aug 2008 00:51:02 +0000 (00:51 +0000)]
Silence some SyntaxWarnings for tuple unpacking in a parameter list for
urlparse when run under -3.
Antoine Pitrou [Sat, 2 Aug 2008 21:58:05 +0000 (21:58 +0000)]
Preemptively backport the relevant parts of r65420
Lars Gustäbel [Sat, 2 Aug 2008 11:26:39 +0000 (11:26 +0000)]
Issue #3039: Fix TarFileCompat.writestr() which always raised an
AttributeError since __slots__ were added to zipfile.ZipInfo in
r46967 two years ago.
Add a warning about the removal of TarFileCompat in Python 3.0.
Martin v. Löwis [Sat, 2 Aug 2008 07:20:25 +0000 (07:20 +0000)]
Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Tcl command objects.
Brett Cannon [Sat, 2 Aug 2008 03:37:50 +0000 (03:37 +0000)]
Remove a __getitem__() removal on an exception to silence a warning triggered
under -3.
Brett Cannon [Sat, 2 Aug 2008 03:32:13 +0000 (03:32 +0000)]
Remove a dict.has_key() use to silence a warning when running under -3.
Brett Cannon [Sat, 2 Aug 2008 03:28:42 +0000 (03:28 +0000)]
Remove a dict.has_key() use to silence a warning raised under -3.
Brett Cannon [Sat, 2 Aug 2008 03:15:20 +0000 (03:15 +0000)]
Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised
while running under -3.
Brett Cannon [Sat, 2 Aug 2008 03:13:46 +0000 (03:13 +0000)]
Remove a tuple unpacking in a parameter list to suppress the SyntaxWarning with
-3.
Benjamin Peterson [Sat, 2 Aug 2008 03:11:16 +0000 (03:11 +0000)]
fix compile error on Windows
Benjamin Peterson [Sat, 2 Aug 2008 03:05:11 +0000 (03:05 +0000)]
revert last revision; code was right
Benjamin Peterson [Sat, 2 Aug 2008 02:57:17 +0000 (02:57 +0000)]
fix indentation that caused logic bug
Georg Brandl [Fri, 1 Aug 2008 20:13:29 +0000 (20:13 +0000)]
This should really be a comment.
Georg Brandl [Fri, 1 Aug 2008 20:04:43 +0000 (20:04 +0000)]
Add the grammar to the reference manual, since the new docs don't
have the feature of putting all the small EBNF snippets together
into one big file.
Jesse Noller [Fri, 1 Aug 2008 19:46:50 +0000 (19:46 +0000)]
Submit fix for issue3393: Memory corruption in multiprocessing module
Martin v. Löwis [Fri, 1 Aug 2008 14:10:26 +0000 (14:10 +0000)]
Generate the PatternGrammar pickle during "make install".
Fixes part of #3131.
Mark Dickinson [Fri, 1 Aug 2008 09:13:07 +0000 (09:13 +0000)]
Tone down math.fsum warning.
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.
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.
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.
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.
Brett Cannon [Fri, 1 Aug 2008 01:21:50 +0000 (01:21 +0000)]
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
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.
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
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?)
Neal Norwitz [Thu, 31 Jul 2008 17:17:14 +0000 (17:17 +0000)]
Security patches from Apple: prevent int overflow when allocating memory
Benjamin Peterson [Thu, 31 Jul 2008 15:15:45 +0000 (15:15 +0000)]
remove usage of MacOS from Tkinter
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
Brett Cannon [Thu, 31 Jul 2008 03:00:53 +0000 (03:00 +0000)]
Backport test.support.fcmp() from 3.0 to silence -3 warnings.
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.
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.
Benjamin Peterson [Wed, 30 Jul 2008 23:49:28 +0000 (23:49 +0000)]
I mess up again; BufferError inherits StandardError
Mark Dickinson [Wed, 30 Jul 2008 20:23:15 +0000 (20:23 +0000)]
Add note about problems with math.fsum on x86 hardware.
Benjamin Peterson [Wed, 30 Jul 2008 19:35:27 +0000 (19:35 +0000)]
add BufferError to the exception hieracrchy
Benjamin Peterson [Wed, 30 Jul 2008 17:45:10 +0000 (17:45 +0000)]
backport r64751
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
Mark Dickinson [Wed, 30 Jul 2008 16:20:10 +0000 (16:20 +0000)]
Rename math.sum to math.fsum
Benjamin Peterson [Wed, 30 Jul 2008 13:46:53 +0000 (13:46 +0000)]
getrandombits is actually getrandbits
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.
Raymond Hettinger [Wed, 30 Jul 2008 07:27:30 +0000 (07:27 +0000)]
Neaten-up the itertools recipes.
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
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.
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.
Jesus Cea [Tue, 29 Jul 2008 13:38:50 +0000 (13:38 +0000)]
Refinements in the bsddb testsuite
Benjamin Peterson [Mon, 28 Jul 2008 23:35:27 +0000 (23:35 +0000)]
backport r65264
Andrew M. Kuchling [Mon, 28 Jul 2008 17:04:48 +0000 (17:04 +0000)]
Clarify wording
Benjamin Peterson [Sun, 27 Jul 2008 15:22:14 +0000 (15:22 +0000)]
clarify Popen argument
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.)
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.
Skip Montanaro [Sun, 27 Jul 2008 00:50:41 +0000 (00:50 +0000)]
note robotparser bug fix.
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.
Georg Brandl [Sat, 26 Jul 2008 22:13:29 +0000 (22:13 +0000)]
Shorten some overlong lines.
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.
Andrew M. Kuchling [Sat, 26 Jul 2008 13:09:06 +0000 (13:09 +0000)]
Remove extra words
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
Antoine Pitrou [Sat, 26 Jul 2008 11:56:37 +0000 (11:56 +0000)]
Fix more buildbot failures on test_locale.
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
Antoine Pitrou [Fri, 25 Jul 2008 22:22:08 +0000 (22:22 +0000)]
add a NEWS entry
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)
Antoine Pitrou [Fri, 25 Jul 2008 22:02:07 +0000 (22:02 +0000)]
add a pybench test for complex function calls (part of #1819)
Benjamin Peterson [Fri, 25 Jul 2008 21:59:53 +0000 (21:59 +0000)]
fix indentation
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)
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
Raymond Hettinger [Fri, 25 Jul 2008 18:43:33 +0000 (18:43 +0000)]
Issue 1592: Better error reporting for operations on closed shelves.
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
Benjamin Peterson [Fri, 25 Jul 2008 17:02:11 +0000 (17:02 +0000)]
document default value for fillvalue
Benjamin Peterson [Fri, 25 Jul 2008 16:55:37 +0000 (16:55 +0000)]
teach .bzrignore about doc tools