Martin v. Löwis [Thu, 14 Aug 2008 20:12:06 +0000 (20:12 +0000)]
Fix memory leak: Always DECREF obj in PyBuffer_Release.
Thomas Heller [Thu, 14 Aug 2008 20:04:38 +0000 (20:04 +0000)]
Try to fix the test on 64-bit platforms.
Thomas Heller [Thu, 14 Aug 2008 19:10:48 +0000 (19:10 +0000)]
issue #3554: ctypes.string_at and ctypes.wstring_at must use the
pythonapi calling convention so that the GIL is held and error return
values are checked.
Facundo Batista [Thu, 14 Aug 2008 16:51:00 +0000 (16:51 +0000)]
Issue 1432. Fixes a bug caused because of the evolution
of the RFC that describes the behaviour. Note that we now
have the same behaviour than the current browsers.
Martin v. Löwis [Thu, 14 Aug 2008 15:56:07 +0000 (15:56 +0000)]
Properly INCREF reference in Py_buffer.
Martin v. Löwis [Thu, 14 Aug 2008 15:54:27 +0000 (15:54 +0000)]
Make obj an owned reference in Py_buffer; this checkin
was missing from the patch for #3139.
Hirokazu Yamamoto [Thu, 14 Aug 2008 11:26:34 +0000 (11:26 +0000)]
Added _multiprocessing module support. (VC6)
Brett Cannon [Thu, 14 Aug 2008 05:55:18 +0000 (05:55 +0000)]
Fix markup for various binary operation examples where the operands were bolded
and the operator was made literal, leading to non-valid reST. Changed to have
the entire expression just be a literal bit of text.
Hirokazu Yamamoto [Thu, 14 Aug 2008 05:50:43 +0000 (05:50 +0000)]
Fixed test_distutils error (test_build_ext) on VC6.
Brett Cannon [Thu, 14 Aug 2008 05:00:03 +0000 (05:00 +0000)]
Silence the DeprecationWarning of rfc822 triggered by its importation in
mimetools.
This has an unfortunate side-effect of potentially not letting any warning
about rfc822's deprecation be seen by user-visible code if rfc822 is not
imported before mimetools. This is because modules are cached in sys.modules
and thus do not have their deprecation triggered more than once. But this
silencing would have happened by other code that silences the use of mimetools
or rfc822 anyway in the stdlib or user code, and thus seems justified to be
done here.
Hirokazu Yamamoto [Thu, 14 Aug 2008 01:33:44 +0000 (01:33 +0000)]
Issue #2065: VC6 related fix.
- PC/VC6/_bsddb.dsp:
removed '/nodefaultlib:"msvcrt"' to fix linker error.
- PC/VC6/_msi.dsp, PC/VC6/pcbuild.dsw:
added new module support.
- PC/VC6/_sqlite3.dsp:
/D "MODULE_NAME=\"sqlite3\""
caused extra leading space like
#define MODULE_NAME " sqlite3"
so uses
/D MODULE_NAME=\"sqlite3\"
instead.
- PC/VC6/python.dsp:
changed stack size to 2MB to avoid stack overflow on
some tests.
Martin v. Löwis [Tue, 12 Aug 2008 20:45:21 +0000 (20:45 +0000)]
Add Hirokazu Yamamoto.
Bill Janssen [Tue, 12 Aug 2008 17:09:57 +0000 (17:09 +0000)]
update ssl documentation
Bill Janssen [Tue, 12 Aug 2008 16:31:21 +0000 (16:31 +0000)]
remove duplicate close() from ssl.py; expose unwrap and add test for it
Martin v. Löwis [Tue, 12 Aug 2008 14:49:50 +0000 (14:49 +0000)]
Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.
More module might need to get converted to use s*.
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.