Commit graph

55179 commits

Author SHA1 Message Date
Victor Stinner
d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args)
* Formatting string, int, float and complex use the _PyUnicodeWriter API. It
   avoids a temporary buffer in most cases.
 * Add _PyUnicodeWriter_WriteStr() to restore the PyAccu optimization: just
   keep a reference to the string if the output is only composed of one string
 * Disable overallocation when formatting the last argument of str%args and
   str.format(args)
 * Overallocation allocates at least 100 characters: add min_length attribute
   to the _PyUnicodeWriter structure
 * Add new private functions: _PyUnicode_FastCopyCharacters(),
   _PyUnicode_FastFill() and _PyUnicode_FromASCII()

The speed up is around 20% in average.
2012-05-29 12:57:52 +02:00
Victor Stinner
a1b0c9fc4d PyArg_Parse*("U"): ensure that the Unicode string is ready 2012-05-29 12:30:29 +02:00
Richard Oudkerk
87ea780e8e Use Python 3.x-style keyword only arg in Array()
Previously a Python 2.x compatible hack was used for
multiprocessing.sharedctypes.Array().  Also the documented
signature was wrong.
2012-05-29 12:01:47 +01:00
Richard Oudkerk
1074a9294b Remove __getslice__, __setslice__, __delslice__ methods from proxies
Proxy classes in multiprocessing do not need these methods in Python 3.x.
2012-05-29 12:01:45 +01:00
Vinay Sajip
ecdc076695 Removed pysetup3.exe executable. 2012-05-29 11:12:43 +01:00
Hynek Schlawack
52209d3a1e #14835: Make plistlib output empty arrays & dicts like OS X
Patch by Sidney San Martín.
2012-05-29 12:04:54 +02:00
Eli Bendersky
737b173355 Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.
Add attrib keyword to Element and SubElement in _elementtree.
Patch developed with Ezio Melotti.
2012-05-29 06:02:56 +03:00
R David Murray
6bed342b58 Refactor test_email/test_pickleable and add tests for date headers 2012-05-28 21:09:04 -04:00
R David Murray
a7c9ddb59c Regularize test_email/test_headerregistry's references to policy. 2012-05-28 20:22:37 -04:00
R David Murray
d41595b920 Refactor test_email/test_defect_handling. 2012-05-28 20:14:10 -04:00
Richard Oudkerk
3e0a1eb889 Issue #14930: Make memoryview objects weakrefable. 2012-05-28 21:35:09 +01:00
Antoine Pitrou
1cfe7d9a84 Issue #14775: Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
Additional comments by Tim Silk.
2012-05-28 22:23:42 +02:00
Antoine Pitrou
e1ad3dac3d Issue #14775: Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
Additional comments by Tim Silk.
2012-05-28 22:22:34 +02:00
Meador Inge
d102e04e4a Issue #9041: raised exception is misleading
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:47:53 -05:00
Meador Inge
031e25b0f7 Issue #9041: raised exception is misleading
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:21:16 -05:00
Vinay Sajip
ef4c5010e4 Fixed typo. 2012-05-28 17:01:17 +01:00
Vinay Sajip
382a7c0180 Tweaked tests to use launcher executable name on OS X. 2012-05-28 16:34:47 +01:00
Vinay Sajip
4469746878 Added python3 symlink; removed Distribute-related code, docs and comments; changed Mac OS X computation to determine framework builds. 2012-05-28 16:33:01 +01:00
Nick Coghlan
ab45e689be Merge from 3.2 2012-05-28 22:36:07 +10:00
Nick Coghlan
4b6045c30f Issue #14443: Tell rpmbuild to use the correct version of Python 2012-05-28 22:34:46 +10:00
Ned Deily
7e18f43ec8 Issue #14660: Install namespace_pkgs test directories and files. 2012-05-27 22:34:33 -07:00
Terry Jan Reedy
c6aa93cf22 Merge 3.2 #14929 2012-05-27 23:06:14 -04:00
Terry Jan Reedy
e1c5087802 Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping.
Patch by Roger Serwy.
2012-05-27 22:56:49 -04:00
R David Murray
7ef3ff3f2e #12515: email now registers a defect if the MIME end boundary is missing.
This commit also restores the news item for 167256 that it looks like
Terry inadvertently deleted.  (Either that, or I don't understand
now merging works...which is equally possible.)
2012-05-27 22:20:42 -04:00
Terry Jan Reedy
d0a0e8e070 merge heads 2012-05-27 21:54:28 -04:00
Terry Jan Reedy
48fd1fee38 Merge 3.2 closes #12510 2012-05-27 21:39:39 -04:00
Terry Jan Reedy
c5301ef2df Issue12510: Attempting to get invalid tooltip no longer closes Idle.
Original patch by Roger Serwy.
2012-05-27 21:29:17 -04:00
R David Murray
9854fc9c18 News item for #1672568. 2012-05-27 21:27:31 -04:00
R David Murray
80e0aee95b #1672568: email now registers defects for base64 payload format errors.
Which also means that it is now producing *something* for any base64
payload, which is what leads to the couple of older test changes in
test_email.  This is a slightly backward incompatible behavior change,
but the new behavior is so much more useful than the old (you can now
*reliably* detect errors, and any program that was detecting errors by
sniffing for a base64 return from get_payload(decode=True) and then doing
its own error-recovery decode will just get the error-recovery decode
right away).  So this seems to me to be worth the small risk inherent
in this behavior change.

This patch also refactors the defect tests into a separate test file,
since they are no longer just parser tests.
2012-05-27 21:23:34 -04:00
R David Murray
adbdcdbd95 #14925: email now registers a defect for missing header/body separator.
This patch also deprecates the MalformedHeaderDefect.  My best guess is that
this defect was rendered obsolete by a refactoring of the parser, and the
corresponding defect for the new parser (which this patch introduces) was
overlooked.
2012-05-27 20:45:01 -04:00
R David Murray
2c172d04bb Null merge of email doc patch already applied to this branch. 2012-05-27 17:18:28 -04:00
R David Murray
e1398f77ea #11785: fix the :mod: references in email package submodule titles. 2012-05-27 17:17:53 -04:00
R David Murray
79cf3bad1b #11785: fix the :mod: references in email package submodule titles.
Also adds the TOC entry for headerregistry.
2012-05-27 17:10:36 -04:00
R David Murray
ea9766897b Make headerregistry fully part of the provisional api.
When I made the checkin of the provisional email policy, I knew that
Address and Group needed to be made accessible from somewhere.  The more
I looked at it, though, the more it became clear that since this is a
provisional API anyway, there's no good reason to hide headerregistry as
a private API.  It was designed to ultimately be part of the public API,
and so it should be part of the provisional API.

This patch fully documents the headerregistry API, and deletes the
abbreviated version of those docs I had added to the provisional policy
docs.
2012-05-27 15:03:38 -04:00
Vinay Sajip
393da3240a Changed executable name computation in test_venv to allow for debug executables. 2012-05-27 19:05:36 +01:00
Vinay Sajip
b3b49cd1d2 Refined venv tests. 2012-05-27 18:39:22 +01:00
R David Murray
36432ea783 Add '__all__' to _encoded_words and mark QByteMap as private. 2012-05-27 12:39:54 -04:00
Vinay Sajip
7e203498d1 Fixed _sys_home computation and added diagnostics for Windows buildbot failures. 2012-05-27 17:30:09 +01:00
Nick Coghlan
0b43bcf528 Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue 2012-05-27 18:17:07 +10:00
Nick Coghlan
5c6eba3a93 Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports 2012-05-27 17:49:58 +10:00
Georg Brandl
38e0e1ec85 Fix markup. 2012-05-27 09:31:10 +02:00
Terry Jan Reedy
f1ee7886f3 Merge with 3.2 #10635 whitespace 2012-05-26 20:44:45 -04:00
Terry Jan Reedy
3fde191f39 #10365 Trim trailing whitespace 2012-05-26 20:43:17 -04:00
Terry Jan Reedy
935d5eb43f Merge with 3.2
Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.
2012-05-26 20:29:25 -04:00
Terry Jan Reedy
cd6b8c67ce Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.
2012-05-26 20:23:45 -04:00
Richard Oudkerk
26cdf1fe5b Make multiprocessing's shared memory use memoryview instead of raw pointer 2012-05-26 22:09:59 +01:00
Terry Jan Reedy
1a0df94db3 Merge Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.
2012-05-26 16:50:30 -04:00
Terry Jan Reedy
809309a482 Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.
2012-05-26 16:31:00 -04:00
Vinay Sajip
ee2bbed925 Merged upstream changes. 2012-05-26 20:39:27 +01:00
Vinay Sajip
42211426eb Addressed some buildbot errors and comments on the checkin by Antoine on python-dev. 2012-05-26 20:36:12 +01:00