Benjamin Peterson [Mon, 18 Aug 2008 17:52:22 +0000 (17:52 +0000)]
Blocked revisions 65822 via svnmerge
........
r65822 | benjamin.peterson | 2008-08-18 12:45:09 -0500 (Mon, 18 Aug 2008) | 1 line
backport threading property changes
........
Benjamin Peterson [Mon, 18 Aug 2008 17:33:47 +0000 (17:33 +0000)]
change is_daemon, set_daemon, get_name, and set_name to properties
I'm add add warnings and backport this to 2.6 soon
Eric Smith [Mon, 18 Aug 2008 17:16:20 +0000 (17:16 +0000)]
Blocked revisions 65814 via svnmerge
........
r65814 | eric.smith | 2008-08-18 10:27:38 -0400 (Mon, 18 Aug 2008) | 12 lines
Backport of r63826.
Optimization of str.format() for cases with str, unicode, int, long,
and float arguments. This gives about 30% speed improvement for the
simplest (but most common) cases. This patch skips the __format__
dispatch, and also avoids creating an object to hold the format_spec.
Unfortunately there's a complication in 2.6 with int, long, and float
because they always expect str format_specs. So in the unicode
version of this optimization, just check for unicode objects. int,
float, long, and str can be added later, if needed.
........
Benjamin Peterson [Mon, 18 Aug 2008 16:45:31 +0000 (16:45 +0000)]
Merged revisions 65818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65818 | benjamin.peterson | 2008-08-18 11:40:03 -0500 (Mon, 18 Aug 2008) | 4 lines
change threading.getIdent to a property
This is new in 2.6 so now need to worry about backwards compatibility :)
........
Benjamin Peterson [Mon, 18 Aug 2008 16:08:02 +0000 (16:08 +0000)]
fix dependencies after rename
Nick Coghlan [Mon, 18 Aug 2008 13:18:16 +0000 (13:18 +0000)]
Merged revisions 65810 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65810 | nick.coghlan | 2008-08-18 23:14:22 +1000 (Mon, 18 Aug 2008) | 1 line
Issue 2235: document PyObject_HashNotImplemented
........
Nick Coghlan [Mon, 18 Aug 2008 12:31:52 +0000 (12:31 +0000)]
Forward port only Py3k relevant change in r65642 (giving it a Py3k NEWS entry anyway because of the difference in the changes between the two branches)
Gregory P. Smith [Mon, 18 Aug 2008 03:41:46 +0000 (03:41 +0000)]
ReferenceError is undefined. causes test___all__.py to fail. remove it from __all__
Benjamin Peterson [Mon, 18 Aug 2008 02:15:14 +0000 (02:15 +0000)]
Blocked revisions 65802-65803 via svnmerge
........
r65802 | benjamin.peterson | 2008-08-17 21:01:21 -0500 (Sun, 17 Aug 2008) | 1 line
follup to #3473: don't duplicate the reduce code
........
r65803 | benjamin.peterson | 2008-08-17 21:12:23 -0500 (Sun, 17 Aug 2008) | 1 line
add a test for reduce's move
........
Brett Cannon [Mon, 18 Aug 2008 01:45:29 +0000 (01:45 +0000)]
Partially revert r65795 by undoing change to 'os'.
Benjamin Peterson [Mon, 18 Aug 2008 01:29:54 +0000 (01:29 +0000)]
Blocked revisions 65798 via svnmerge
........
r65798 | benjamin.peterson | 2008-08-17 20:27:05 -0500 (Sun, 17 Aug 2008) | 1 line
correct version
........
Benjamin Peterson [Mon, 18 Aug 2008 01:27:32 +0000 (01:27 +0000)]
correct version
Gregory P. Smith [Mon, 18 Aug 2008 01:05:25 +0000 (01:05 +0000)]
fix cut and paste error in a comment
Brett Cannon [Mon, 18 Aug 2008 00:51:19 +0000 (00:51 +0000)]
Merged revisions 65795 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65795 | brett.cannon | 2008-08-17 17:46:22 -0700 (Sun, 17 Aug 2008) | 3 lines
Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
the module but exposed as part of the API.
........
Brett Cannon [Mon, 18 Aug 2008 00:43:03 +0000 (00:43 +0000)]
Merged revisions 65793 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65793 | brett.cannon | 2008-08-17 17:41:11 -0700 (Sun, 17 Aug 2008) | 2 lines
Remove an unneeded import of abc.ABCMeta from 'inspect'.
........
Brett Cannon [Mon, 18 Aug 2008 00:39:30 +0000 (00:39 +0000)]
Merged revisions 65791 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65791 | brett.cannon | 2008-08-17 17:36:52 -0700 (Sun, 17 Aug 2008) | 2 lines
Remove two unneeded imports in 'io'.
........
Brett Cannon [Sun, 17 Aug 2008 22:31:15 +0000 (22:31 +0000)]
Merged revisions 65787 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65787 | brett.cannon | 2008-08-17 15:10:11 -0700 (Sun, 17 Aug 2008) | 3 lines
Remove imports of 'warnings' that are no longer needed in dummy_thread,
filecmp, and shelve.
........
Benjamin Peterson [Sun, 17 Aug 2008 20:34:29 +0000 (20:34 +0000)]
fix markup
Benjamin Peterson [Sun, 17 Aug 2008 20:23:46 +0000 (20:23 +0000)]
Merged revisions 65659,65693,65700,65702,65706-65707,65761 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65659 | martin.v.loewis | 2008-08-12 15:45:21 -0500 (Tue, 12 Aug 2008) | 2 lines
Add Hirokazu Yamamoto.
........
r65693 | georg.brandl | 2008-08-15 13:35:09 -0500 (Fri, 15 Aug 2008) | 2 lines
#3558: Attribute reference binds more tightly than subscription and call.
........
r65700 | antoine.pitrou | 2008-08-15 16:03:21 -0500 (Fri, 15 Aug 2008) | 3 lines
#2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input
........
r65702 | gregory.p.smith | 2008-08-15 18:14:00 -0500 (Fri, 15 Aug 2008) | 2 lines
document that waitpid raises OSError
........
r65706 | benjamin.peterson | 2008-08-15 22:02:41 -0500 (Fri, 15 Aug 2008) | 1 line
fix markup
........
r65707 | benjamin.peterson | 2008-08-15 22:13:07 -0500 (Fri, 15 Aug 2008) | 1 line
note how os.utime should be used for emulating touch
........
r65761 | antoine.pitrou | 2008-08-17 08:06:29 -0500 (Sun, 17 Aug 2008) | 3 lines
fix ZipFile.testzip() to work with very large embedded files
........
Benjamin Peterson [Sun, 17 Aug 2008 19:28:19 +0000 (19:28 +0000)]
Blocked revisions 65679,65710 via svnmerge
........
r65679 | facundo.batista | 2008-08-14 11:51:00 -0500 (Thu, 14 Aug 2008) | 5 lines
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.
........
r65710 | facundo.batista | 2008-08-16 09:44:07 -0500 (Sat, 16 Aug 2008) | 4 lines
Issue #2776: fixed small issue when handling an URL with double slash
after a 302 response in the case of not going through a proxy.
........
Benjamin Peterson [Sun, 17 Aug 2008 18:57:58 +0000 (18:57 +0000)]
correct return type
Benjamin Peterson [Sun, 17 Aug 2008 18:02:44 +0000 (18:02 +0000)]
Merged revisions 65715,65724,65726,65732,65736-65739,65775 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65715 | benjamin.peterson | 2008-08-16 16:04:16 -0500 (Sat, 16 Aug 2008) | 1 line
add some documentation for symtable
........
r65724 | benjamin.peterson | 2008-08-16 17:11:33 -0500 (Sat, 16 Aug 2008) | 2 lines
include filename and line number in SyntaxError
........
r65726 | georg.brandl | 2008-08-16 17:37:05 -0500 (Sat, 16 Aug 2008) | 2 lines
Review symtable docs.
........
r65732 | benjamin.peterson | 2008-08-16 18:29:40 -0500 (Sat, 16 Aug 2008) | 1 line
PySTEntry's constructor is static; there's no point in a fancy API name
........
r65736 | benjamin.peterson | 2008-08-16 20:09:17 -0500 (Sat, 16 Aug 2008) | 1 line
expose PySTEntry.nested so the symtable module will work
........
r65737 | benjamin.peterson | 2008-08-16 20:17:15 -0500 (Sat, 16 Aug 2008) | 1 line
a few improvements
........
r65738 | benjamin.peterson | 2008-08-16 20:27:30 -0500 (Sat, 16 Aug 2008) | 1 line
fix compile errors
........
r65739 | benjamin.peterson | 2008-08-16 21:23:43 -0500 (Sat, 16 Aug 2008) | 1 line
uhh PySTEntry->ste_unoptimized has to be exposed too
........
r65775 | benjamin.peterson | 2008-08-17 12:13:26 -0500 (Sun, 17 Aug 2008) | 5 lines
get the symtable module back in working order
- Fix broken functions
- Add (hopefully) extensive tests
- Modernize a little
........
Benjamin Peterson [Sun, 17 Aug 2008 17:15:25 +0000 (17:15 +0000)]
Blocked revisions 65741 via svnmerge
........
r65741 | facundo.batista | 2008-08-16 22:38:39 -0500 (Sat, 16 Aug 2008) | 4 lines
Issue 2464. Supports a malformation in the URL received
in a redirect.
........
Antoine Pitrou [Sun, 17 Aug 2008 17:06:51 +0000 (17:06 +0000)]
Merged revisions 65773 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65773 | antoine.pitrou | 2008-08-17 19:01:49 +0200 (dim., 17 août 2008) | 3 lines
#3556: test_raiseMemError consumes an insane amount of memory
........
Hirokazu Yamamoto [Sun, 17 Aug 2008 15:24:17 +0000 (15:24 +0000)]
NEWS items from 2.6 don't need to be merged to 3.0.
http://mail.python.org/pipermail/python-3000-checkins/2008-August/004301.html
Hirokazu Yamamoto [Sun, 17 Aug 2008 15:16:18 +0000 (15:16 +0000)]
Blocked revisions 65762 via svnmerge
........
r65762 | hirokazu.yamamoto | 2008-08-17 22:10:46 +0900 | 2 lines
Backport r65661, r65760: Issue #3575: Incremental decoder's decode
function now takes bytearray by using 's*' instead of 't#'.
........
Antoine Pitrou [Sun, 17 Aug 2008 14:44:35 +0000 (14:44 +0000)]
Blocked revisions 65768 via svnmerge
........
r65768 | antoine.pitrou | 2008-08-17 16:43:41 +0200 (dim., 17 août 2008) | 3 lines
backport r65723: strengthen test_os.test_closerange
........
Hirokazu Yamamoto [Sun, 17 Aug 2008 12:59:57 +0000 (12:59 +0000)]
Issue #3575: Incremental decoder's decode function now takes bytearray
by using 's*' instead of 't#'
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:57:45 +0000 (09:57 +0000)]
Blocked revisions 65748 via svnmerge
........
r65748 | hirokazu.yamamoto | 2008-08-17 18:46:56 +0900 | 1 line
I forgot to update NEWS.
........
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:52:28 +0000 (09:52 +0000)]
I forgot to update NEWS.
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:30:15 +0000 (09:30 +0000)]
Merged revisions 65745 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65745 | hirokazu.yamamoto | 2008-08-17 18:19:52 +0900 | 2 lines
Issue #2222: Fixed reference leak when occured os.rename()
fails unicode conversion on 2nd parameter. (windows only)
........
Hirokazu Yamamoto [Sun, 17 Aug 2008 07:26:26 +0000 (07:26 +0000)]
RPC_WSTR is not available Visual Studio 2003 or earlier.
(Maybe I should have defined RPC_WSTR on old compiler,
but uuidcreate() is only place using it, so I simply replaced
with unsigned short *)
Brett Cannon [Sun, 17 Aug 2008 04:28:14 +0000 (04:28 +0000)]
Blocked revisions 65742 via svnmerge
........
r65742 | brett.cannon | 2008-08-16 21:16:04 -0700 (Sat, 16 Aug 2008) | 2 lines
Update distutils so that it triggers no warnings when run under -3.
........
Facundo Batista [Sun, 17 Aug 2008 03:36:03 +0000 (03:36 +0000)]
Issue 2464. Supports a malformation in the URL received
in a redirect.
Antoine Pitrou [Sun, 17 Aug 2008 00:39:46 +0000 (00:39 +0000)]
Blocked revisions 65733 via svnmerge
........
r65733 | antoine.pitrou | 2008-08-17 02:36:03 +0200 (dim., 17 août 2008) | 3 lines
Make test_ossaudiodev work.
........
Antoine Pitrou [Sun, 17 Aug 2008 00:38:32 +0000 (00:38 +0000)]
#3567: fix sunau for running with -bb and make test_ossaudiodev work.
Antoine Pitrou [Sat, 16 Aug 2008 23:28:44 +0000 (23:28 +0000)]
Issue #3571: test_bytes mistakingly closed stdin
Antoine Pitrou [Sat, 16 Aug 2008 22:03:17 +0000 (22:03 +0000)]
#3571: try to fix recurrent buildbot failures by strenghtening test_os.test_closerange
Brett Cannon [Sat, 16 Aug 2008 22:01:29 +0000 (22:01 +0000)]
Blocked revisions 65721 via svnmerge
........
r65721 | brett.cannon | 2008-08-16 15:00:27 -0700 (Sat, 16 Aug 2008) | 2 lines
Silence DeprecationWarning raised by mimetools and rfc822 in cgi.
........
Brett Cannon [Sat, 16 Aug 2008 21:59:25 +0000 (21:59 +0000)]
Blocked revisions 65719 via svnmerge
........
r65719 | brett.cannon | 2008-08-16 14:56:03 -0700 (Sat, 16 Aug 2008) | 2 lines
Silence the DeprecationWarning raised in httplib when mimetools is imported.
........
Brett Cannon [Sat, 16 Aug 2008 21:48:09 +0000 (21:48 +0000)]
Blocked revisions 65716 via svnmerge
........
r65716 | brett.cannon | 2008-08-16 14:47:07 -0700 (Sat, 16 Aug 2008) | 5 lines
Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
This does have an unfortunate side-effect of silencing the warning for all
subsequent code that imports mimetools as well since the warning is only
executed upon the first import of mimetools.
........
Benjamin Peterson [Sat, 16 Aug 2008 16:48:16 +0000 (16:48 +0000)]
Merged revisions 65713 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65713 | benjamin.peterson | 2008-08-16 11:29:02 -0500 (Sat, 16 Aug 2008) | 1 line
#3424 rearrange the order of tests in imghdr to place more common types first
........
Benjamin Peterson [Sat, 16 Aug 2008 16:11:03 +0000 (16:11 +0000)]
add _testcapi.raise_memoryerror to make test_exceptions.test_MemoryError simpler
Facundo Batista [Sat, 16 Aug 2008 14:44:32 +0000 (14:44 +0000)]
Issue #2776: fixed small issue when handling an URL with double slash
after a 302 response in the case of not going through a proxy.
Martin v. Löwis [Sat, 16 Aug 2008 13:02:57 +0000 (13:02 +0000)]
Bug #3542: Support Unicode strings in _msi module.
Benjamin Peterson [Sat, 16 Aug 2008 02:59:55 +0000 (02:59 +0000)]
murder some versionadded and versionchanged directives in their beds
Benjamin Peterson [Fri, 15 Aug 2008 23:56:02 +0000 (23:56 +0000)]
Merged revisions 65703 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
................
r65703 | benjamin.peterson | 2008-08-15 18:51:24 -0500 (Fri, 15 Aug 2008) | 11 lines
Merged revisions 65397 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65397 | collin.winter | 2008-08-01 22:39:06 -0500 (Fri, 01 Aug 2008) | 5 lines
Patch #3480 by Nick Edds.
Dramatically simplifies the fix_imports pattern, resulting in a reduction of the test_all_fixers runtime from 122+ secs to 59 secs (a good predictor of 2to3 performance).
........
................
Christian Heimes [Fri, 15 Aug 2008 18:43:03 +0000 (18:43 +0000)]
Removed some unused imports to decrease the amount of loaded modules during startup.
Added fallback to _dummy_thread for OSs w/o thread support.
Antoine Pitrou [Fri, 15 Aug 2008 14:51:48 +0000 (14:51 +0000)]
Fix building binascii when not using the zlib's crc32 (build failure on Windows buildbots)
Martin v. Löwis [Fri, 15 Aug 2008 06:27:17 +0000 (06:27 +0000)]
Zero-initialize buf. Fixes #3557.
Alexandre Vassalotti [Fri, 15 Aug 2008 03:07:47 +0000 (03:07 +0000)]
Issue 3514: Fixed segfault dues to infinite loop in __getattr__.
Antoine Pitrou [Fri, 15 Aug 2008 00:05:08 +0000 (00:05 +0000)]
Fix build from a blank checkout by using the _thread module instead of threading in io.py
(thanks Christian!)
Antoine Pitrou [Thu, 14 Aug 2008 22:44:29 +0000 (22:44 +0000)]
Merged revisions 65686 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65686 | antoine.pitrou | 2008-08-14 23:04:30 +0200 (jeu., 14 août 2008) | 3 lines
Issue #3476: make BufferedReader and BufferedWriter thread-safe
........
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.
........