Martin v. Löwis [Thu, 14 Aug 2008 20:32:30 +0000 (20:32 +0000)]
Merged revisions 65677-65678,65683 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65677 | martin.v.loewis | 2008-08-14 17:54:27 +0200 (Do, 14 Aug 2008) | 3 lines
Make obj an owned reference in Py_buffer; this checkin
was missing from the patch for #3139.
........
r65678 | martin.v.loewis | 2008-08-14 17:56:07 +0200 (Do, 14 Aug 2008) | 2 lines
Properly INCREF reference in Py_buffer.
........
r65683 | martin.v.loewis | 2008-08-14 22:12:06 +0200 (Do, 14 Aug 2008) | 2 lines
Fix memory leak: Always DECREF obj in PyBuffer_Release.
........
Facundo Batista [Thu, 14 Aug 2008 16:55:14 +0000 (16:55 +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:52:23 +0000 (15:52 +0000)]
Use s* to receive data. Fixes #3552.
Georg Brandl [Thu, 14 Aug 2008 11:50:32 +0000 (11:50 +0000)]
#3550: socket APIs use bytes, not strings.
Hirokazu Yamamoto [Thu, 14 Aug 2008 11:34:49 +0000 (11:34 +0000)]
Merged revisions 65672 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65672 | hirokazu.yamamoto | 2008-08-14 20:26:34 +0900 | 1 line
Added _multiprocessing module support. (VC6)
........
Hirokazu Yamamoto [Thu, 14 Aug 2008 07:37:15 +0000 (07:37 +0000)]
Blocked revisions 65663 via svnmerge
........
r65663 | hirokazu.yamamoto | 2008-08-14 10:33:44 +0900 | 19 lines
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.
........
Hirokazu Yamamoto [Thu, 14 Aug 2008 07:35:13 +0000 (07:35 +0000)]
Merged revisions 65667 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65667 | hirokazu.yamamoto | 2008-08-14 14:50:43 +0900 | 1 line
Fixed test_distutils error (test_build_ext) on VC6.
........
Brett Cannon [Thu, 14 Aug 2008 05:59:39 +0000 (05:59 +0000)]
Merged revisions 65668 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65668 | brett.cannon | 2008-08-13 22:55:18 -0700 (Wed, 13 Aug 2008) | 4 lines
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.
........
Brett Cannon [Thu, 14 Aug 2008 05:01:01 +0000 (05:01 +0000)]
Blocked revisions 65665 via svnmerge
........
r65665 | brett.cannon | 2008-08-13 22:00:03 -0700 (Wed, 13 Aug 2008) | 11 lines
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:40:45 +0000 (01:40 +0000)]
Issue #2065: VC6 related fix.
- PC/VC6/_bsddb.dsp:
removed '/nodefaultlib:"msvcrt"' to fix linker error.
- 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 the way of modifying stack size
Martin v. Löwis [Wed, 13 Aug 2008 15:53:07 +0000 (15:53 +0000)]
Merged revisions 65654 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines
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*.
........
Bill Janssen [Tue, 12 Aug 2008 17:09:27 +0000 (17:09 +0000)]
update ssl documentation
Bill Janssen [Tue, 12 Aug 2008 16:56:25 +0000 (16:56 +0000)]
clean up ssl.py; expose unwrap and add test for it
Georg Brandl [Tue, 12 Aug 2008 08:35:52 +0000 (08:35 +0000)]
Merged revisions 65459,65472,65481,65518,65536,65581,65609,65637,65641,65644-65645 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65459 | gregory.p.smith | 2008-08-04 00:13:29 +0000 (Mon, 04 Aug 2008) | 4 lines
- 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.
........
r65472 | andrew.kuchling | 2008-08-04 01:43:43 +0000 (Mon, 04 Aug 2008) | 3 lines
Bug 3228: Explicitly supply the file mode to avoid creating executable files,
and add corresponding tests.
Possible 2.5 backport candidate
........
r65481 | gregory.p.smith | 2008-08-04 07:33:37 +0000 (Mon, 04 Aug 2008) | 22 lines
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.
........
r65518 | mark.dickinson | 2008-08-04 21:30:09 +0000 (Mon, 04 Aug 2008) | 7 lines
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')).
........
r65536 | andrew.kuchling | 2008-08-05 01:00:57 +0000 (Tue, 05 Aug 2008) | 1 line
Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, check for having os.stat available
........
r65581 | guido.van.rossum | 2008-08-07 18:51:38 +0000 (Thu, 07 Aug 2008) | 3 lines
Patch by Ian Charnas from issue 3517.
Add F_FULLFSYNC if it exists (OS X only so far).
........
r65609 | antoine.pitrou | 2008-08-09 17:22:25 +0000 (Sat, 09 Aug 2008) | 3 lines
#3205: bz2 iterator fails silently on MemoryError
........
r65637 | georg.brandl | 2008-08-11 09:07:59 +0000 (Mon, 11 Aug 2008) | 3 lines
- Issue #3537: Fix an assertion failure when an empty but presized dict
object was stored in the freelist.
........
r65641 | jesse.noller | 2008-08-11 14:28:07 +0000 (Mon, 11 Aug 2008) | 2 lines
Remove the fqdn call for issue 3270
........
r65644 | antoine.pitrou | 2008-08-11 17:21:36 +0000 (Mon, 11 Aug 2008) | 3 lines
#3134: shutil referenced undefined WindowsError symbol
........
r65645 | jesse.noller | 2008-08-11 19:00:15 +0000 (Mon, 11 Aug 2008) | 2 lines
Fix the connection refused error part of issue 3419, use errno module instead of a static list of possible connection refused messages.
........
Georg Brandl [Tue, 12 Aug 2008 08:18:18 +0000 (08:18 +0000)]
Merged revisions 65437,65469,65476,65480,65502,65528,65539,65543,65558,65561-65562,65565,65591,65601,65608,65610,65639 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65437 | georg.brandl | 2008-08-03 22:28:55 +0000 (Sun, 03 Aug 2008) | 2 lines
Note the removal of several committers.
........
r65469 | gregory.p.smith | 2008-08-04 01:03:50 +0000 (Mon, 04 Aug 2008) | 3 lines
issue1606: Add warnings to the subprocess documentation about common pitfalls
of using pipes that cause deadlocks.
........
r65476 | georg.brandl | 2008-08-04 06:29:36 +0000 (Mon, 04 Aug 2008) | 2 lines
Fix markup.
........
r65480 | georg.brandl | 2008-08-04 07:31:50 +0000 (Mon, 04 Aug 2008) | 3 lines
Clarify the meaning of the select() parameters and sync
names with docstring.
........
r65502 | gregory.p.smith | 2008-08-04 18:34:07 +0000 (Mon, 04 Aug 2008) | 2 lines
more cleanup ups of the recently added warnings in the subprocess docs.
........
r65528 | brett.cannon | 2008-08-04 21:52:25 +0000 (Mon, 04 Aug 2008) | 4 lines
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.
........
r65539 | andrew.kuchling | 2008-08-05 01:38:08 +0000 (Tue, 05 Aug 2008) | 6 lines
#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.
........
r65543 | andrew.kuchling | 2008-08-05 02:05:23 +0000 (Tue, 05 Aug 2008) | 1 line
#3367: revert rev. 65539: this change causes test_parser to fail
........
r65558 | georg.brandl | 2008-08-06 17:20:41 +0000 (Wed, 06 Aug 2008) | 2 lines
Fix longstringitem definition. #3505.
........
r65561 | mark.dickinson | 2008-08-06 20:12:30 +0000 (Wed, 06 Aug 2008) | 2 lines
Docstring typo
........
r65562 | mark.dickinson | 2008-08-06 21:36:57 +0000 (Wed, 06 Aug 2008) | 2 lines
Remove duplicate import
........
r65565 | andrew.kuchling | 2008-08-07 01:47:34 +0000 (Thu, 07 Aug 2008) | 1 line
Add some items
........
r65591 | georg.brandl | 2008-08-08 06:42:20 +0000 (Fri, 08 Aug 2008) | 2 lines
#3519: callee is an expression too.
........
r65601 | georg.brandl | 2008-08-08 15:34:34 +0000 (Fri, 08 Aug 2008) | 2 lines
Remove mention of backquotes in the tutorial.
........
r65608 | guido.van.rossum | 2008-08-09 14:55:34 +0000 (Sat, 09 Aug 2008) | 2 lines
Add news item about _sre.compile() re-bytecode validator.
........
r65610 | antoine.pitrou | 2008-08-09 17:27:23 +0000 (Sat, 09 Aug 2008) | 3 lines
move NEWS entry to the appropriate section (oops!)
........
r65639 | georg.brandl | 2008-08-11 10:27:31 +0000 (Mon, 11 Aug 2008) | 2 lines
#3540: fix exception name.
........
Nick Coghlan [Mon, 11 Aug 2008 15:49:03 +0000 (15:49 +0000)]
Blocked revisions 65642 via svnmerge
........
r65642 | nick.coghlan | 2008-08-12 01:45:58 +1000 (Tue, 12 Aug 2008) | 1 line
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.
........
Georg Brandl [Sun, 10 Aug 2008 12:16:45 +0000 (12:16 +0000)]
Remove long integer output.
Robert Schuppenies [Sun, 10 Aug 2008 11:28:17 +0000 (11:28 +0000)]
Merged revisions 65622 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65622 | robert.schuppenies | 2008-08-10 13:01:53 +0200 (Sun, 10 Aug 2008) | 4 lines
Issue #
1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.
........
Brett Cannon [Sat, 9 Aug 2008 23:40:18 +0000 (23:40 +0000)]
Blocked revisions 65619 via svnmerge
........
r65619 | brett.cannon | 2008-08-09 16:39:11 -0700 (Sat, 09 Aug 2008) | 3 lines
Silence warnings in csv about using reduce() when run under -3 by using
functools.reduce() instead.
........
Brett Cannon [Sat, 9 Aug 2008 23:35:24 +0000 (23:35 +0000)]
Blocked revisions 65617 via svnmerge
........
r65617 | brett.cannon | 2008-08-09 16:34:11 -0700 (Sat, 09 Aug 2008) | 3 lines
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.
........
Brett Cannon [Sat, 9 Aug 2008 23:32:13 +0000 (23:32 +0000)]
Blocked revisions 65615 via svnmerge
........
r65615 | brett.cannon | 2008-08-09 16:30:55 -0700 (Sat, 09 Aug 2008) | 3 lines
Copy reduce() to _functools so to have functools.reduce() not raise a warning
from usage under -3.
........
Brett Cannon [Sat, 9 Aug 2008 23:08:15 +0000 (23:08 +0000)]
Blocked revisions 65613 via svnmerge
........
r65613 | brett.cannon | 2008-08-09 16:06:16 -0700 (Sat, 09 Aug 2008) | 4 lines
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.
........
Skip Montanaro [Sat, 9 Aug 2008 21:26:45 +0000 (21:26 +0000)]
prop change?
Skip Montanaro [Sat, 9 Aug 2008 19:44:22 +0000 (19:44 +0000)]
Merged revisions 65605 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65605 | skip.montanaro | 2008-08-08 17:52:51 -0500 (Fri, 08 Aug 2008) | 1 line
accept issue 3436
........
Antoine Pitrou [Sat, 9 Aug 2008 12:47:13 +0000 (12:47 +0000)]
Blocked revisions 65606 via svnmerge
........
r65606 | antoine.pitrou | 2008-08-09 14:43:23 +0200 (sam., 09 août 2008) | 3 lines
Fix slightly misleading statement in the NEWS file.
........
Georg Brandl [Fri, 8 Aug 2008 07:04:38 +0000 (07:04 +0000)]
#3524: fix up some old-style IO descriptions.
Georg Brandl [Fri, 8 Aug 2008 06:50:56 +0000 (06:50 +0000)]
#3525: 3.0 exception changes in tutorial.
Georg Brandl [Fri, 8 Aug 2008 06:45:01 +0000 (06:45 +0000)]
#3523: no backquotes any more.
Georg Brandl [Fri, 8 Aug 2008 06:44:14 +0000 (06:44 +0000)]
#3522: zip() returns an iterator.
Brett Cannon [Fri, 8 Aug 2008 04:28:30 +0000 (04:28 +0000)]
Blocked revisions 65588 via svnmerge
........
r65588 | brett.cannon | 2008-08-07 21:27:28 -0700 (Thu, 07 Aug 2008) | 3 lines
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:20:32 +0000 (04:20 +0000)]
Blocked revisions 65586 via svnmerge
........
r65586 | brett.cannon | 2008-08-07 21:19:32 -0700 (Thu, 07 Aug 2008) | 5 lines
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:16:58 +0000 (04:16 +0000)]
Blocked revisions 65584 via svnmerge
........
r65584 | brett.cannon | 2008-08-07 21:15:53 -0700 (Thu, 07 Aug 2008) | 3 lines
Change the warning emitted for using the buffer() object; memoryview() in 3.0
is not an equivalent.
........
Antoine Pitrou [Thu, 7 Aug 2008 21:50:41 +0000 (21:50 +0000)]
issue #3460: PyUnicode_Join() implementation can be simplified in py3k
Marc-André Lemburg [Thu, 7 Aug 2008 18:54:33 +0000 (18:54 +0000)]
Rename PyUnicode_AsString -> _PyUnicode_AsString and
PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark
them for interpreter internal use only.
We'll have to rework these APIs or create new ones for the
purpose of accessing the UTF-8 representation of Unicode objects
for 3.1.
Antoine Pitrou [Thu, 7 Aug 2008 18:47:28 +0000 (18:47 +0000)]
Blocked revisions 65578 via svnmerge
........
r65578 | antoine.pitrou | 2008-08-07 20:42:40 +0200 (jeu., 07 août 2008) | 3 lines
#
1288615: Python code.interact() and non-ASCII input
........
Brett Cannon [Wed, 6 Aug 2008 22:28:55 +0000 (22:28 +0000)]
Blocked revisions 65563 via svnmerge
........
r65563 | brett.cannon | 2008-08-06 15:28:09 -0700 (Wed, 06 Aug 2008) | 3 lines
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
has been removed there.
........
Guido van Rossum [Wed, 6 Aug 2008 19:31:34 +0000 (19:31 +0000)]
Revert accidentally committed files. Oops!
Guido van Rossum [Wed, 6 Aug 2008 19:29:14 +0000 (19:29 +0000)]
Merged revisions 65544 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65544 | guido.van.rossum | 2008-08-04 20:39:21 -0700 (Mon, 04 Aug 2008) | 28 lines
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.
........
Georg Brandl [Tue, 5 Aug 2008 09:04:16 +0000 (09:04 +0000)]
#3503: fix print statements in 3k doc.
Brett Cannon [Mon, 4 Aug 2008 21:35:14 +0000 (21:35 +0000)]
Blocked revisions 65524 via svnmerge
........
r65524 | brett.cannon | 2008-08-04 14:34:34 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove use of callable() from pickle to silence warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:33:39 +0000 (21:33 +0000)]
Blocked revisions 65522 via svnmerge
........
r65522 | brett.cannon | 2008-08-04 14:33:00 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove tuple parameter unpacking in aifc to silence warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:32:00 +0000 (21:32 +0000)]
Blocked revisions 65519 via svnmerge
........
r65519 | brett.cannon | 2008-08-04 14:30:53 -0700 (Mon, 04 Aug 2008) | 2 lines
Silence warnings under -3 triggered by wsgiref.
........
Brett Cannon [Mon, 4 Aug 2008 21:25:42 +0000 (21:25 +0000)]
Blocked revisions 65516 via svnmerge
........
r65516 | brett.cannon | 2008-08-04 14:24:43 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove a use of callable() from Tkinter to silence warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:23:44 +0000 (21:23 +0000)]
Blocked revisions 65514 via svnmerge
........
r65514 | brett.cannon | 2008-08-04 14:23:07 -0700 (Mon, 04 Aug 2008) | 3 lines
Remove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence
warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:20:29 +0000 (21:20 +0000)]
Blocked revisions 65512 via svnmerge
........
r65512 | brett.cannon | 2008-08-04 14:19:41 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove usage of apply() in sqlite3 to silence warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:17:53 +0000 (21:17 +0000)]
Blocked revisions 65510 via svnmerge
........
r65510 | brett.cannon | 2008-08-04 14:17:15 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove dict.has_key() usage in the shelve module to silence warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:13:59 +0000 (21:13 +0000)]
Blocked revisions 65508 via svnmerge
........
r65508 | brett.cannon | 2008-08-04 14:10:50 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove dict.has_key() usage in xml.sax to silence warnings under -3.
........
Brett Cannon [Mon, 4 Aug 2008 21:08:43 +0000 (21:08 +0000)]
Blocked revisions 65506 via svnmerge
........
r65506 | brett.cannon | 2008-08-04 14:07:59 -0700 (Mon, 04 Aug 2008) | 2 lines
Remove the use of callable() in re to silence warnings under -3.
........
Nick Coghlan [Mon, 4 Aug 2008 13:00:15 +0000 (13:00 +0000)]
Blocked revisions 65487-65488 via svnmerge
........
r65487 | nick.coghlan | 2008-08-04 22:40:59 +1000 (Mon, 04 Aug 2008) | 1 line
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).
........
r65488 | nick.coghlan | 2008-08-04 22:47:17 +1000 (Mon, 04 Aug 2008) | 1 line
Add missing NEWS entry for r65487
........
Georg Brandl [Mon, 4 Aug 2008 08:25:03 +0000 (08:25 +0000)]
Remove the deprecated posix attribute.
Georg Brandl [Mon, 4 Aug 2008 07:26:07 +0000 (07:26 +0000)]
Blocked revisions 65477 via svnmerge
........
r65477 | georg.brandl | 2008-08-04 07:23:29 +0000 (Mon, 04 Aug 2008) | 2 lines
Template is always "tmp".
........
Georg Brandl [Mon, 4 Aug 2008 07:24:52 +0000 (07:24 +0000)]
Undocument deprecated module global "template".
Brett Cannon [Mon, 4 Aug 2008 00:51:17 +0000 (00:51 +0000)]
Blocked revisions 65467 via svnmerge
........
r65467 | brett.cannon | 2008-08-03 17:50:11 -0700 (Sun, 03 Aug 2008) | 3 lines
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:28:42 +0000 (00:28 +0000)]
Blocked revisions 65464 via svnmerge
........
r65464 | brett.cannon | 2008-08-03 17:27:29 -0700 (Sun, 03 Aug 2008) | 2 lines
Silence warnings under -3 about using dict.has_key() for modulefinder.
........
Brett Cannon [Mon, 4 Aug 2008 00:24:38 +0000 (00:24 +0000)]
Blocked revisions 65462 via svnmerge
........
r65462 | brett.cannon | 2008-08-03 17:23:58 -0700 (Sun, 03 Aug 2008) | 3 lines
Remove dict.has_key() usage in xml.dom.minidom to silence warnings while
running under -3.
........
Brett Cannon [Mon, 4 Aug 2008 00:10:29 +0000 (00:10 +0000)]
Blocked revisions 65457 via svnmerge
........
r65457 | brett.cannon | 2008-08-03 17:09:43 -0700 (Sun, 03 Aug 2008) | 3 lines
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:53:13 +0000 (23:53 +0000)]
Blocked revisions 65455 via svnmerge
........
r65455 | brett.cannon | 2008-08-03 16:52:32 -0700 (Sun, 03 Aug 2008) | 2 lines
Remove a use of callable() in fileinput to silence a -3 warning.
........
Brett Cannon [Sun, 3 Aug 2008 23:47:26 +0000 (23:47 +0000)]
Blocked revisions 65453 via svnmerge
........
r65453 | brett.cannon | 2008-08-03 16:46:46 -0700 (Sun, 03 Aug 2008) | 3 lines
Move filecmp from using dict.has_key() to dict.__contains__() to silence
warnings triggered under -3.
........
Brett Cannon [Sun, 3 Aug 2008 23:40:51 +0000 (23:40 +0000)]
Blocked revisions 65451 via svnmerge
........
r65451 | brett.cannon | 2008-08-03 16:40:13 -0700 (Sun, 03 Aug 2008) | 2 lines
Remove a dict.has_key() usage in email._parseaddr found while running -3.
........
Brett Cannon [Sun, 3 Aug 2008 23:28:13 +0000 (23:28 +0000)]
Blocked revisions 65449 via svnmerge
........
r65449 | brett.cannon | 2008-08-03 16:27:32 -0700 (Sun, 03 Aug 2008) | 3 lines
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 23:00:33 +0000 (23:00 +0000)]
Blocked revisions 65446 via svnmerge
........
r65446 | brett.cannon | 2008-08-03 15:59:46 -0700 (Sun, 03 Aug 2008) | 2 lines
Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3.
........
Brett Cannon [Sun, 3 Aug 2008 22:58:03 +0000 (22:58 +0000)]
Blocked revisions 65444 via svnmerge
........
r65444 | brett.cannon | 2008-08-03 15:57:23 -0700 (Sun, 03 Aug 2008) | 3 lines
Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered
under -3 through test_xmlrpc.
........
Brett Cannon [Sun, 3 Aug 2008 22:53:31 +0000 (22:53 +0000)]
Blocked revisions 65442 via svnmerge
........
r65442 | brett.cannon | 2008-08-03 15:52:42 -0700 (Sun, 03 Aug 2008) | 3 lines
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:58 +0000 (22:38 +0000)]
Blocked revisions 65440 via svnmerge
........
r65440 | brett.cannon | 2008-08-03 15:38:19 -0700 (Sun, 03 Aug 2008) | 2 lines
Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.
........
Brett Cannon [Sun, 3 Aug 2008 22:35:21 +0000 (22:35 +0000)]
Blocked revisions 65438 via svnmerge
........
r65438 | brett.cannon | 2008-08-03 15:34:25 -0700 (Sun, 03 Aug 2008) | 3 lines
Remove a use of list.sort(cmp=) to silence a -3 DeprecationWarning in
cookielib.
........
Georg Brandl [Sun, 3 Aug 2008 10:04:14 +0000 (10:04 +0000)]
Use version 3.0.
Georg Brandl [Sun, 3 Aug 2008 09:47:27 +0000 (09:47 +0000)]
Merged revisions 65378-65379,65430 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65378 | georg.brandl | 2008-08-01 22:04:43 +0200 (Fri, 01 Aug 2008) | 4 lines
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.
........
r65379 | georg.brandl | 2008-08-01 22:13:29 +0200 (Fri, 01 Aug 2008) | 2 lines
This should really be a comment.
........
r65430 | georg.brandl | 2008-08-03 11:21:18 +0200 (Sun, 03 Aug 2008) | 2 lines
#3495: use current version.
........
Georg Brandl [Sun, 3 Aug 2008 09:45:51 +0000 (09:45 +0000)]
Blocked revisions 65422 via svnmerge
........
r65422 | antoine.pitrou | 2008-08-02 23:58:05 +0200 (Sat, 02 Aug 2008) | 1 line
Preemptively backport the relevant parts of r65420
........
Brett Cannon [Sun, 3 Aug 2008 00:59:47 +0000 (00:59 +0000)]
Blocked revisions 65425 via svnmerge
........
r65425 | brett.cannon | 2008-08-02 17:58:51 -0700 (Sat, 02 Aug 2008) | 3 lines
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:38 +0000 (00:51 +0000)]
Blocked revisions 65423 via svnmerge
........
r65423 | brett.cannon | 2008-08-02 17:51:02 -0700 (Sat, 02 Aug 2008) | 3 lines
Silence some SyntaxWarnings for tuple unpacking in a parameter list for
urlparse when run under -3.
........
Antoine Pitrou [Sat, 2 Aug 2008 21:02:48 +0000 (21:02 +0000)]
#2538: bytes objects can only provide read-only buffers
Georg Brandl [Sat, 2 Aug 2008 16:34:27 +0000 (16:34 +0000)]
str.join() doesn't convert arguments anymore.
Lars Gustäbel [Sat, 2 Aug 2008 11:43:24 +0000 (11:43 +0000)]
Remove the TarFileCompat class from tarfile.py.
Lars Gustäbel [Sat, 2 Aug 2008 11:36:08 +0000 (11:36 +0000)]
Blocked revisions 65402 via svnmerge
........
r65402 | lars.gustaebel | 2008-08-02 13:26:39 +0200 (Sat, 02 Aug 2008) | 5 lines
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:23:15 +0000 (07:23 +0000)]
Merged revisions 65399 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65399 | martin.v.loewis | 2008-08-02 09:20:25 +0200 (Sa, 02 Aug 2008) | 3 lines
Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Tcl command objects.
........
Brett Cannon [Sat, 2 Aug 2008 03:38:29 +0000 (03:38 +0000)]
Blocked revisions 65395 via svnmerge
........
r65395 | brett.cannon | 2008-08-01 20:37:50 -0700 (Fri, 01 Aug 2008) | 3 lines
Remove a __getitem__() removal on an exception to silence a warning triggered
under -3.
........
Brett Cannon [Sat, 2 Aug 2008 03:32:49 +0000 (03:32 +0000)]
Blocked revisions 65393 via svnmerge
........
r65393 | brett.cannon | 2008-08-01 20:32:13 -0700 (Fri, 01 Aug 2008) | 2 lines
Remove a dict.has_key() use to silence a warning when running under -3.
........
Brett Cannon [Sat, 2 Aug 2008 03:29:56 +0000 (03:29 +0000)]
Blocked revisions 65391 via svnmerge
........
r65391 | brett.cannon | 2008-08-01 20:28:42 -0700 (Fri, 01 Aug 2008) | 2 lines
Remove a dict.has_key() use to silence a warning raised under -3.
........
Benjamin Peterson [Sat, 2 Aug 2008 03:17:02 +0000 (03:17 +0000)]
Merged revisions 65385 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65385 | benjamin.peterson | 2008-08-01 22:11:16 -0500 (Fri, 01 Aug 2008) | 1 line
fix compile error on Windows
........
Brett Cannon [Sat, 2 Aug 2008 03:16:31 +0000 (03:16 +0000)]
Blocked revisions 65387 via svnmerge
........
r65387 | brett.cannon | 2008-08-01 20:15:20 -0700 (Fri, 01 Aug 2008) | 3 lines
Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised
while running under -3.
........
Brett Cannon [Sat, 2 Aug 2008 03:15:58 +0000 (03:15 +0000)]
Blocked revisions 65386 via svnmerge
........
r65386 | brett.cannon | 2008-08-01 20:13:46 -0700 (Fri, 01 Aug 2008) | 3 lines
Remove a tuple unpacking in a parameter list to suppress the SyntaxWarning with
-3.
........
Benjamin Peterson [Sat, 2 Aug 2008 03:08:49 +0000 (03:08 +0000)]
Blocked revisions 65382-65383 via svnmerge
........
r65382 | benjamin.peterson | 2008-08-01 21:57:17 -0500 (Fri, 01 Aug 2008) | 1 line
fix indentation that caused logic bug
........
r65383 | benjamin.peterson | 2008-08-01 22:05:11 -0500 (Fri, 01 Aug 2008) | 1 line
revert last revision; code was right
........
Jesse Noller [Sat, 2 Aug 2008 02:03:58 +0000 (02:03 +0000)]
Merge 65376 into 3k, fix for issue 3399
Georg Brandl [Fri, 1 Aug 2008 16:25:12 +0000 (16:25 +0000)]
Fix merge conflict.
Benjamin Peterson [Fri, 1 Aug 2008 16:19:40 +0000 (16:19 +0000)]
Blocked revisions 65355 via svnmerge
........
r65355 | brett.cannon | 2008-07-31 20:45:49 -0500 (Thu, 31 Jul 2008) | 2 lines
Remove a use of callable() to silence the warning triggered under -3.
........
Martin v. Löwis [Fri, 1 Aug 2008 14:15:22 +0000 (14:15 +0000)]
Merged revisions 65368 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65368 | martin.v.loewis | 2008-08-01 16:10:26 +0200 (Fr, 01 Aug 2008) | 3 lines
Generate the PatternGrammar pickle during "make install".
Fixes part of #3131.
........
Mark Dickinson [Fri, 1 Aug 2008 09:14:03 +0000 (09:14 +0000)]
Merged revisions 65366 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65366 | mark.dickinson | 2008-08-01 10:13:07 +0100 (Fri, 01 Aug 2008) | 2 lines
Tone down math.fsum warning.
........
Mark Dickinson [Fri, 1 Aug 2008 08:16:13 +0000 (08:16 +0000)]
Merged revisions 65258,65292,65299,65308-65309,65315,65326 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65258 | mark.dickinson | 2008-07-27 08:15:29 +0100 (Sun, 27 Jul 2008) | 4 lines
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.)
........
r65292 | mark.dickinson | 2008-07-29 19:45:38 +0100 (Tue, 29 Jul 2008) | 4 lines
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.
........
r65299 | mark.dickinson | 2008-07-30 13:01:41 +0100 (Wed, 30 Jul 2008) | 5 lines
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.
........
r65308 | mark.dickinson | 2008-07-30 17:20:10 +0100 (Wed, 30 Jul 2008) | 2 lines
Rename math.sum to math.fsum
........
r65309 | mark.dickinson | 2008-07-30 17:25:16 +0100 (Wed, 30 Jul 2008) | 3 lines
Replace math.sum with math.fsum in a couple of comments
that were missed by r65308
........
r65315 | mark.dickinson | 2008-07-30 21:23:15 +0100 (Wed, 30 Jul 2008) | 2 lines
Add note about problems with math.fsum on x86 hardware.
........
r65326 | mark.dickinson | 2008-07-31 15:48:32 +0100 (Thu, 31 Jul 2008) | 2 lines
Rename testSum to testFsum and move it to proper place in test_math.py
........
Brett Cannon [Fri, 1 Aug 2008 01:41:04 +0000 (01:41 +0000)]
Blocked revisions 65353 via svnmerge
........
r65353 | brett.cannon | 2008-07-31 18:40:24 -0700 (Thu, 31 Jul 2008) | 4 lines
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:38:47 +0000 (01:38 +0000)]
Blocked revisions 65351 via svnmerge
........
r65351 | brett.cannon | 2008-07-31 18:36:47 -0700 (Thu, 31 Jul 2008) | 3 lines
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:40 +0000 (01:34 +0000)]
Blocked revisions 65349 via svnmerge
........
r65349 | brett.cannon | 2008-07-31 18:34:05 -0700 (Thu, 31 Jul 2008) | 3 lines
Remove assignment to True/False to silence the SyntaxWarning that is triggered
by -3.
........
Brett Cannon [Fri, 1 Aug 2008 01:23:09 +0000 (01:23 +0000)]
Blocked revisions 65346 via svnmerge
........
r65346 | brett.cannon | 2008-07-31 18:21:50 -0700 (Thu, 31 Jul 2008) | 1 line
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
........
Amaury Forgeot d'Arc [Fri, 1 Aug 2008 01:06:32 +0000 (01:06 +0000)]
Merged revisions 65339-65340,65342 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65339 | amaury.forgeotdarc | 2008-07-31 23:28:03 +0200 (jeu., 31 juil. 2008) | 5 lines
#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?)
........
r65340 | amaury.forgeotdarc | 2008-07-31 23:35:03 +0200 (jeu., 31 juil. 2008) | 2 lines
Remove a dummy test that was checked in by mistake
........
r65342 | amaury.forgeotdarc | 2008-08-01 01:39:05 +0200 (ven., 01 août 2008) | 8 lines
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 [Fri, 1 Aug 2008 00:14:22 +0000 (00:14 +0000)]
posix.fdopen does not exists any more; and os.fdopen exists on all platforms.
Move tests from test_posix to test_os.
Amaury Forgeot d'Arc [Fri, 1 Aug 2008 00:06:49 +0000 (00:06 +0000)]
#2491: os.fdopen() is now almost an alias to the builtin open(), and accepts the same parameters.
It just checks that the first argument is a file descriptor.
Amaury Forgeot d'Arc [Thu, 31 Jul 2008 22:56:02 +0000 (22:56 +0000)]
Correct one of the "MemoryError oddities":
the traceback would grow each time a MemoryError is raised.
Benjamin Peterson [Thu, 31 Jul 2008 21:10:28 +0000 (21:10 +0000)]
Merged revisions 65293 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65293 | benjamin.peterson | 2008-07-29 14:28:49 -0500 (Tue, 29 Jul 2008) | 1 line
the from __future__ import with_statement isn't needed in 2.6
........
Benjamin Peterson [Thu, 31 Jul 2008 20:21:46 +0000 (20:21 +0000)]
Merged revisions 65259,65263,65296,65307,65321 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65259 | benjamin.peterson | 2008-07-27 10:22:14 -0500 (Sun, 27 Jul 2008) | 1 line
clarify Popen argument
........
r65263 | andrew.kuchling | 2008-07-28 12:04:48 -0500 (Mon, 28 Jul 2008) | 1 line
Clarify wording
........
r65296 | raymond.hettinger | 2008-07-30 02:27:30 -0500 (Wed, 30 Jul 2008) | 1 line
Neaten-up the itertools recipes.
........
r65307 | benjamin.peterson | 2008-07-30 08:46:53 -0500 (Wed, 30 Jul 2008) | 1 line
getrandombits is actually getrandbits
........
r65321 | raymond.hettinger | 2008-07-30 20:19:50 -0500 (Wed, 30 Jul 2008) | 4 lines
Alter recipe to show how to call izip_longest() with
both a keyword argument and star arguments.
........
Benjamin Peterson [Thu, 31 Jul 2008 16:32:12 +0000 (16:32 +0000)]
Merged revisions 65257 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65257 | mark.dickinson | 2008-07-27 01:39:07 -0500 (Sun, 27 Jul 2008) | 3 lines
Issue #3449: Update decimal module to use most recent specification
(v. 1.68) and tests (v. 2.58) from IBM.
........
Benjamin Peterson [Thu, 31 Jul 2008 16:23:04 +0000 (16:23 +0000)]
Merged revisions 65209-65216,65225-65226,65233,65239,65246-65247,65255-65256 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65209 | raymond.hettinger | 2008-07-23 19:08:18 -0500 (Wed, 23 Jul 2008) | 1 line
Finish-up the partial conversion from int to Py_ssize_t for deque indices and length.
........
r65210 | raymond.hettinger | 2008-07-23 19:53:49 -0500 (Wed, 23 Jul 2008) | 1 line
Parse to the correct datatype.
........
r65211 | benjamin.peterson | 2008-07-23 21:27:46 -0500 (Wed, 23 Jul 2008) | 1 line
fix spacing
........
r65212 | benjamin.peterson | 2008-07-23 21:31:28 -0500 (Wed, 23 Jul 2008) | 1 line
fix markup
........
r65213 | benjamin.peterson | 2008-07-23 21:45:37 -0500 (Wed, 23 Jul 2008) | 1 line
add some documentation for 2to3
........
r65214 | raymond.hettinger | 2008-07-24 00:38:48 -0500 (Thu, 24 Jul 2008) | 1 line
Finish conversion from int to Py_ssize_t.
........
r65215 | raymond.hettinger | 2008-07-24 02:04:55 -0500 (Thu, 24 Jul 2008) | 1 line
Convert from long to Py_ssize_t.
........
r65216 | georg.brandl | 2008-07-24 02:09:21 -0500 (Thu, 24 Jul 2008) | 2 lines
Fix indentation.
........
r65225 | benjamin.peterson | 2008-07-25 11:55:37 -0500 (Fri, 25 Jul 2008) | 1 line
teach .bzrignore about doc tools
........
r65226 | benjamin.peterson | 2008-07-25 12:02:11 -0500 (Fri, 25 Jul 2008) | 1 line
document default value for fillvalue
........
r65233 | raymond.hettinger | 2008-07-25 13:43:33 -0500 (Fri, 25 Jul 2008) | 1 line
Issue 1592: Better error reporting for operations on closed shelves.
........
r65239 | benjamin.peterson | 2008-07-25 16:59:53 -0500 (Fri, 25 Jul 2008) | 1 line
fix indentation
........
r65246 | andrew.kuchling | 2008-07-26 08:08:19 -0500 (Sat, 26 Jul 2008) | 1 line
This sentence continues to bug me; rewrite it for the second time
........
r65247 | andrew.kuchling | 2008-07-26 08:09:06 -0500 (Sat, 26 Jul 2008) | 1 line
Remove extra words
........
r65255 | skip.montanaro | 2008-07-26 19:49:02 -0500 (Sat, 26 Jul 2008) | 3 lines
Close issue 3437 - missing state change when Allow lines are processed.
Adds test cases which use Allow: as well.
........
r65256 | skip.montanaro | 2008-07-26 19:50:41 -0500 (Sat, 26 Jul 2008) | 2 lines
note robotparser bug fix.
........