Ronald Oussoren [Tue, 12 Aug 2008 12:41:45 +0000 (12:41 +0000)]
Another fix for 4-way universal builds, use the right #ifndef guard
to detect the OSX 10.5 SDK.
Ronald Oussoren [Tue, 12 Aug 2008 12:29:13 +0000 (12:29 +0000)]
Fix typo in the `arch` commandline
Jesse Noller [Mon, 11 Aug 2008 19:00:15 +0000 (19:00 +0000)]
Fix the connection refused error part of issue 3419, use errno module instead of a static list of possible connection refused messages.
Antoine Pitrou [Mon, 11 Aug 2008 17:21:36 +0000 (17:21 +0000)]
#3134: shutil referenced undefined WindowsError symbol
Nick Coghlan [Mon, 11 Aug 2008 15:45:58 +0000 (15:45 +0000)]
Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
Jesse Noller [Mon, 11 Aug 2008 14:28:07 +0000 (14:28 +0000)]
Remove the fqdn call for issue 3270
Georg Brandl [Mon, 11 Aug 2008 10:27:31 +0000 (10:27 +0000)]
#3540: fix exception name.
Georg Brandl [Mon, 11 Aug 2008 09:07:59 +0000 (09:07 +0000)]
- Issue #3537: Fix an assertion failure when an empty but presized dict
object was stored in the freelist.
Robert Schuppenies [Sun, 10 Aug 2008 11:01:53 +0000 (11:01 +0000)]
Issue #
1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.
Brett Cannon [Sat, 9 Aug 2008 23:39:11 +0000 (23:39 +0000)]
Silence warnings in csv about using reduce() when run under -3 by using
functools.reduce() instead.
Brett Cannon [Sat, 9 Aug 2008 23:34:11 +0000 (23:34 +0000)]
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.
Brett Cannon [Sat, 9 Aug 2008 23:30:55 +0000 (23:30 +0000)]
Copy reduce() to _functools so to have functools.reduce() not raise a warning
from usage under -3.
Brett Cannon [Sat, 9 Aug 2008 23:06:16 +0000 (23:06 +0000)]
Suppress the warning in asynchat from using buffer() when running udner -3.
Naively removing the usage causes a large number of test failures, so it was
just easier to suppress the warning.
Antoine Pitrou [Sat, 9 Aug 2008 17:27:23 +0000 (17:27 +0000)]
move NEWS entry to the appropriate section (oops!)
Antoine Pitrou [Sat, 9 Aug 2008 17:22:25 +0000 (17:22 +0000)]
#3205: bz2 iterator fails silently on MemoryError
Guido van Rossum [Sat, 9 Aug 2008 14:55:34 +0000 (14:55 +0000)]
Add news item about _sre.compile() re-bytecode validator.
Antoine Pitrou [Sat, 9 Aug 2008 12:43:23 +0000 (12:43 +0000)]
Fix slightly misleading statement in the NEWS file.
Skip Montanaro [Fri, 8 Aug 2008 22:52:51 +0000 (22:52 +0000)]
accept issue 3436
Georg Brandl [Fri, 8 Aug 2008 15:34:34 +0000 (15:34 +0000)]
Remove mention of backquotes in the tutorial.
Georg Brandl [Fri, 8 Aug 2008 06:42:20 +0000 (06:42 +0000)]
#3519: callee is an expression too.
Brett Cannon [Fri, 8 Aug 2008 04:27:28 +0000 (04:27 +0000)]
Remove buffer() usage in the socket module by just slicing directly on the
object. This removes all warnings for the module caused by running under -3.
Brett Cannon [Fri, 8 Aug 2008 04:19:32 +0000 (04:19 +0000)]
Remove warnings generated for the suprocess module when run under -3. Required
commenting out True/False compatbility stuff, remove a use of apply(), and
remove a use of buffer() (just pulled the solution used in 3.0 which is direct
slicing).
Brett Cannon [Fri, 8 Aug 2008 04:15:53 +0000 (04:15 +0000)]
Change the warning emitted for using the buffer() object; memoryview() in 3.0
is not an equivalent.
Guido van Rossum [Thu, 7 Aug 2008 18:51:38 +0000 (18:51 +0000)]
Patch by Ian Charnas from issue 3517.
Add F_FULLFSYNC if it exists (OS X only so far).
Antoine Pitrou [Thu, 7 Aug 2008 18:42:40 +0000 (18:42 +0000)]
#
1288615: Python code.interact() and non-ASCII input
Andrew M. Kuchling [Thu, 7 Aug 2008 01:47:34 +0000 (01:47 +0000)]
Add some items
Brett Cannon [Wed, 6 Aug 2008 22:28:09 +0000 (22:28 +0000)]
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
has been removed there.
Mark Dickinson [Wed, 6 Aug 2008 21:36:57 +0000 (21:36 +0000)]
Remove duplicate import
Mark Dickinson [Wed, 6 Aug 2008 20:12:30 +0000 (20:12 +0000)]
Docstring typo
Georg Brandl [Wed, 6 Aug 2008 17:20:41 +0000 (17:20 +0000)]
Fix longstringitem definition. #3505.
Guido van Rossum [Tue, 5 Aug 2008 03:39:21 +0000 (03:39 +0000)]
Tracker issue 3487: sre "bytecode" verifier.
This is a verifier for the binary code used by the _sre module (this
is often called bytecode, though to distinguish it from Python bytecode
I put it in quotes).
I wrote this for Google App Engine, and am making the patch available as
open source under the Apache 2 license. Below are the copyright
statement and license, for completeness.
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
It's not necessary to include these copyrights and bytecode in the
source file. Google has signed a contributor's agreement with the PSF
already.
Andrew M. Kuchling [Tue, 5 Aug 2008 02:05:23 +0000 (02:05 +0000)]
#3367: revert rev. 65539: this change causes test_parser to fail
Andrew M. Kuchling [Tue, 5 Aug 2008 01:38:08 +0000 (01:38 +0000)]
#3367 from Kristjan Valur Jonsson:
If a PyTokenizer_FromString() is called with an empty string, the
tokenizer's line_start member never gets initialized. Later, it is
compared with the token pointer 'a' in parsetok.c:193 and that behavior
can result in undefined behavior.
Andrew M. Kuchling [Tue, 5 Aug 2008 01:00:57 +0000 (01:00 +0000)]
Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, check for having os.stat available
Brett Cannon [Mon, 4 Aug 2008 21:52:25 +0000 (21:52 +0000)]
Add a note about all the modules/packages changed to silence -3 warnings. More
changes are needed once some decisions are made, but this is the work up to this
point.
Brett Cannon [Mon, 4 Aug 2008 21:34:34 +0000 (21:34 +0000)]
Remove use of callable() from pickle to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:33:00 +0000 (21:33 +0000)]
Remove tuple parameter unpacking in aifc to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:30:53 +0000 (21:30 +0000)]
Silence warnings under -3 triggered by wsgiref.
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.