Benjamin Peterson [Tue, 19 Aug 2008 22:06:11 +0000 (22:06 +0000)]
check that the parser module can handle the new keyword syntax
Benjamin Peterson [Tue, 19 Aug 2008 21:07:15 +0000 (21:07 +0000)]
Merged revisions 65876 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65876 | benjamin.peterson | 2008-08-19 15:54:52 -0500 (Tue, 19 Aug 2008) | 1 line
apply a fix I think will help Windows
........
Guido van Rossum [Tue, 19 Aug 2008 21:02:04 +0000 (21:02 +0000)]
Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.
Guido van Rossum [Tue, 19 Aug 2008 20:13:02 +0000 (20:13 +0000)]
Hopeful fix for issue 1878: remove Py_TPFLAGS_HAVE_VERSION_TAG from
Py_TPFLAGS_DEFAULT when not building the core.
Benjamin Peterson [Tue, 19 Aug 2008 19:52:46 +0000 (19:52 +0000)]
allow keyword args to be passed in after *args #3473
Thomas Heller [Tue, 19 Aug 2008 19:40:23 +0000 (19:40 +0000)]
COM method code is windows specific
Benjamin Peterson [Tue, 19 Aug 2008 19:27:53 +0000 (19:27 +0000)]
fix a little typo
Thomas Heller [Tue, 19 Aug 2008 19:25:04 +0000 (19:25 +0000)]
Fix a regression introduced by rev. 63792: ctypes function pointers
that are COM methods must have a boolean True value.
Benjamin Peterson [Tue, 19 Aug 2008 19:07:38 +0000 (19:07 +0000)]
silence callable warning in hmac
Jesse Noller [Tue, 19 Aug 2008 19:06:19 +0000 (19:06 +0000)]
issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included.
Benjamin Peterson [Tue, 19 Aug 2008 17:59:23 +0000 (17:59 +0000)]
get unparse to at least unparse its self
Thomas Heller [Tue, 19 Aug 2008 17:47:13 +0000 (17:47 +0000)]
Fix strange character in the docstring.
Benjamin Peterson [Tue, 19 Aug 2008 16:41:34 +0000 (16:41 +0000)]
Merged revisions 65853-65854 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65853 | benjamin.peterson | 2008-08-19 11:09:09 -0500 (Tue, 19 Aug 2008) | 1 line
apply a patch for #3131. this solves the problem for the moment, but we should do some refactoring to get display logic out of RefactoringTool
........
r65854 | benjamin.peterson | 2008-08-19 11:37:38 -0500 (Tue, 19 Aug 2008) | 1 line
another quick fix to get lib2to3 to work
........
Georg Brandl [Mon, 18 Aug 2008 23:09:49 +0000 (23:09 +0000)]
Fix grammar.
Benjamin Peterson [Mon, 18 Aug 2008 22:29:19 +0000 (22:29 +0000)]
update the threading docs to account for recent changes
Benjamin Peterson [Mon, 18 Aug 2008 21:53:29 +0000 (21:53 +0000)]
add py3k warnings for old threading APIs
they will still live in 3.0 but it can't hurt
Amaury Forgeot d'Arc [Mon, 18 Aug 2008 19:23:47 +0000 (19:23 +0000)]
#2234 distutils failed with mingw binutils 2.18.50.
20080109.
Be less strict when parsing these version numbers,
they don't necessarily follow the python numbering scheme.
Benjamin Peterson [Mon, 18 Aug 2008 18:39:57 +0000 (18:39 +0000)]
fix old API names in test_ssl
Benjamin Peterson [Mon, 18 Aug 2008 18:31:58 +0000 (18:31 +0000)]
patch up multiprocessing until it's API can be changed too
Benjamin Peterson [Mon, 18 Aug 2008 18:13:17 +0000 (18:13 +0000)]
bring back the old API
Benjamin Peterson [Mon, 18 Aug 2008 18:01:43 +0000 (18:01 +0000)]
change a few uses of the threading APIs
Benjamin Peterson [Mon, 18 Aug 2008 17:45:09 +0000 (17:45 +0000)]
backport threading property changes
Benjamin Peterson [Mon, 18 Aug 2008 16:40:03 +0000 (16:40 +0000)]
change threading.getIdent to a property
This is new in 2.6 so now need to worry about backwards compatibility :)
Eric Smith [Mon, 18 Aug 2008 14:27:38 +0000 (14:27 +0000)]
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.
Nick Coghlan [Mon, 18 Aug 2008 13:32:19 +0000 (13:32 +0000)]
Fix typo
Nick Coghlan [Mon, 18 Aug 2008 13:14:22 +0000 (13:14 +0000)]
Issue 2235: document PyObject_HashNotImplemented
Nick Coghlan [Mon, 18 Aug 2008 12:42:46 +0000 (12:42 +0000)]
Belated NEWS entry for r65642
Marc-André Lemburg [Mon, 18 Aug 2008 11:13:45 +0000 (11:13 +0000)]
Restore Python 2.3 compatibility and remove "with" usage.
Benjamin Peterson [Mon, 18 Aug 2008 02:12:23 +0000 (02:12 +0000)]
add a test for reduce's move
Benjamin Peterson [Mon, 18 Aug 2008 02:01:21 +0000 (02:01 +0000)]
follup to #3473: don't duplicate the reduce code
Benjamin Peterson [Mon, 18 Aug 2008 01:27:05 +0000 (01:27 +0000)]
correct version
Brett Cannon [Mon, 18 Aug 2008 00:46:22 +0000 (00:46 +0000)]
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:41:11 +0000 (00:41 +0000)]
Remove an unneeded import of abc.ABCMeta from 'inspect'.
Brett Cannon [Mon, 18 Aug 2008 00:36:52 +0000 (00:36 +0000)]
Remove two unneeded imports in 'io'.
Brett Cannon [Sun, 17 Aug 2008 22:10:11 +0000 (22:10 +0000)]
Remove imports of 'warnings' that are no longer needed in dummy_thread,
filecmp, and shelve.
Amaury Forgeot d'Arc [Sun, 17 Aug 2008 21:05:18 +0000 (21:05 +0000)]
Fix a refleak in bytearray.split and bytearray.rsplit, detected by
regrtest.py -R:: test_bytes
Benjamin Peterson [Sun, 17 Aug 2008 20:33:45 +0000 (20:33 +0000)]
set svn:executable on a script
Antoine Pitrou [Sun, 17 Aug 2008 20:15:07 +0000 (20:15 +0000)]
#3580: fix a failure in test_os
Benjamin Peterson [Sun, 17 Aug 2008 17:13:26 +0000 (17:13 +0000)]
get the symtable module back in working order
- Fix broken functions
- Add (hopefully) extensive tests
- Modernize a little
Antoine Pitrou [Sun, 17 Aug 2008 17:01:49 +0000 (17:01 +0000)]
#3556: test_raiseMemError consumes an insane amount of memory
Antoine Pitrou [Sun, 17 Aug 2008 14:43:41 +0000 (14:43 +0000)]
backport r65723: strengthen test_os.test_closerange
Hirokazu Yamamoto [Sun, 17 Aug 2008 13:10:46 +0000 (13:10 +0000)]
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 13:06:29 +0000 (13:06 +0000)]
fix ZipFile.testzip() to work with very large embedded files
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:46:56 +0000 (09:46 +0000)]
I forgot to update NEWS.
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:19:52 +0000 (09:19 +0000)]
Issue #2222: Fixed reference leak when occured os.rename()
fails unicode conversion on 2nd parameter. (windows only)
Brett Cannon [Sun, 17 Aug 2008 04:16:04 +0000 (04:16 +0000)]
Update distutils so that it triggers no warnings when run under -3.
Facundo Batista [Sun, 17 Aug 2008 03:38:39 +0000 (03:38 +0000)]
Issue 2464. Supports a malformation in the URL received
in a redirect.
Benjamin Peterson [Sun, 17 Aug 2008 02:23:43 +0000 (02:23 +0000)]
uhh PySTEntry->ste_unoptimized has to be exposed too
Benjamin Peterson [Sun, 17 Aug 2008 01:27:30 +0000 (01:27 +0000)]
fix compile errors
Benjamin Peterson [Sun, 17 Aug 2008 01:17:15 +0000 (01:17 +0000)]
a few improvements
Benjamin Peterson [Sun, 17 Aug 2008 01:09:17 +0000 (01:09 +0000)]
expose PySTEntry.nested so the symtable module will work
Antoine Pitrou [Sun, 17 Aug 2008 00:36:03 +0000 (00:36 +0000)]
Make test_ossaudiodev work.
Benjamin Peterson [Sat, 16 Aug 2008 23:29:40 +0000 (23:29 +0000)]
PySTEntry's constructor is static; there's no point in a fancy API name
Georg Brandl [Sat, 16 Aug 2008 22:37:05 +0000 (22:37 +0000)]
Review symtable docs.
Benjamin Peterson [Sat, 16 Aug 2008 22:11:33 +0000 (22:11 +0000)]
include filename and line number in SyntaxError
Brett Cannon [Sat, 16 Aug 2008 22:00:27 +0000 (22:00 +0000)]
Silence DeprecationWarning raised by mimetools and rfc822 in cgi.
Brett Cannon [Sat, 16 Aug 2008 21:56:03 +0000 (21:56 +0000)]
Silence the DeprecationWarning raised in httplib when mimetools is imported.
Brett Cannon [Sat, 16 Aug 2008 21:47:07 +0000 (21:47 +0000)]
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 21:04:16 +0000 (21:04 +0000)]
add some documentation for symtable
Benjamin Peterson [Sat, 16 Aug 2008 16:29:02 +0000 (16:29 +0000)]
#3424 rearrange the order of tests in imghdr to place more common types first
Facundo Batista [Sat, 16 Aug 2008 14:44:07 +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.
Benjamin Peterson [Sat, 16 Aug 2008 03:13:07 +0000 (03:13 +0000)]
note how os.utime should be used for emulating touch
Benjamin Peterson [Sat, 16 Aug 2008 03:02:41 +0000 (03:02 +0000)]
fix markup
Benjamin Peterson [Fri, 15 Aug 2008 23:51:24 +0000 (23:51 +0000)]
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).
........
Gregory P. Smith [Fri, 15 Aug 2008 23:14:00 +0000 (23:14 +0000)]
document that waitpid raises OSError
Antoine Pitrou [Fri, 15 Aug 2008 21:03:21 +0000 (21:03 +0000)]
#2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input
Georg Brandl [Fri, 15 Aug 2008 18:35:09 +0000 (18:35 +0000)]
#3558: Attribute reference binds more tightly than subscription and call.
Antoine Pitrou [Thu, 14 Aug 2008 21:04:30 +0000 (21:04 +0000)]
Issue #3476: make BufferedReader and BufferedWriter thread-safe
Thomas Heller [Thu, 14 Aug 2008 20:19:18 +0000 (20:19 +0000)]
Disable the test until I have one that works.
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.