Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | merge 3.2 | Benjamin Peterson | 2011-10-19 | 1 | -5/+4 |
|\ | |||||
| * | adjust braces a bit | Benjamin Peterson | 2011-10-19 | 1 | -5/+4 |
| | | |||||
* | | Add consistency check to _PyUnicode_New() | Victor Stinner | 2011-10-18 | 1 | -0/+1 |
| | | |||||
* | | Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore | Victor Stinner | 2011-10-18 | 1 | -141/+609 |
| | | | | | | | | | | error handlers on all Windows versions. The MBCS codec is now supporting all error handlers, instead of only replace to encode and ignore to decode. | ||||
* | | Issue #13188: When called without an explicit traceback argument, | Antoine Pitrou | 2011-10-18 | 1 | -0/+5 |
|\ \ | |/ | | | | | | | generator.throw() now gets the traceback from the passed exception's ``__traceback__`` attribute. Patch by Petri Lehtinen. | ||||
| * | Issue #13188: When called without an explicit traceback argument, | Antoine Pitrou | 2011-10-18 | 1 | -0/+5 |
| | | | | | | | | | | generator.throw() now gets the traceback from the passed exception's `__traceback__` attribute. Patch by Petri Lehtinen. | ||||
* | | Fix typo | Antoine Pitrou | 2011-10-17 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 (#13199) | Benjamin Peterson | 2011-10-17 | 1 | -1/+5 |
|\ \ | |/ | |||||
| * | plug possible refleak (closes #13199) | Benjamin Peterson | 2011-10-17 | 1 | -1/+5 |
| | | |||||
* | | remove some duplication | Benjamin Peterson | 2011-10-15 | 1 | -10/+4 |
| | | |||||
* | | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId. | Martin v. Löwis | 2011-10-14 | 2 | -3/+4 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 10 | -29/+29 |
| | | |||||
* | | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16 | Victor Stinner | 2011-10-14 | 4 | -67/+63 |
| | | |||||
* | | dictviews_or() uses _Py_identifier | Victor Stinner | 2011-10-13 | 1 | -1/+3 |
| | | |||||
* | | Use GetAttrId directly. Proposed by Amaury. | Martin v. Löwis | 2011-10-13 | 1 | -8/+1 |
| | | |||||
* | | Reuse the stringlib in findchar(), and make its signature more convenient | Antoine Pitrou | 2011-10-13 | 1 | -39/+41 |
| | | |||||
* | | Add a comment explaining this heuristic. | Antoine Pitrou | 2011-10-13 | 1 | -0/+3 |
| | | |||||
* | | Simplify heuristic for when to use memchr | Antoine Pitrou | 2011-10-13 | 1 | -11/+1 |
| | | |||||
* | | Optimize unicode_subscript() for step != 1 and ascii strings | Victor Stinner | 2011-10-12 | 1 | -8/+12 |
| | | |||||
* | | Don't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX() | Victor Stinner | 2011-10-12 | 1 | -2/+3 |
| | | |||||
* | | Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr | Victor Stinner | 2011-10-12 | 1 | -0/+8 |
| | | |||||
* | | Issue #13155: Optimize finding the optimal character width of an unicode string | Antoine Pitrou | 2011-10-12 | 2 | -87/+205 |
| | | |||||
* | | Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless | Victor Stinner | 2011-10-12 | 1 | -40/+38 |
| | | | | | | | | Add also a special case if the result is an empty string. | ||||
* | | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -184/+349 |
| | | |||||
* | | Backed out changeset 952d91a7d376 | Victor Stinner | 2011-10-11 | 1 | -1/+1 |
| | | | | | | | | If maxchar == PyUnicode_MAX_CHAR_VALUE(unicode), we do an useless copy. | ||||
* | | Relax condition | Antoine Pitrou | 2011-10-11 | 1 | -1/+1 |
| | | |||||
* | | stringlib: Fix STRINGLIB_STR for UCS2/UCS4 | Victor Stinner | 2011-10-11 | 2 | -2/+2 |
| | | |||||
* | | Fix compiler warning in _PyUnicode_FromUCS2() | Victor Stinner | 2011-10-11 | 1 | -1/+1 |
| | | |||||
* | | Fix fastsearch for UCS2 and UCS4 | Victor Stinner | 2011-10-11 | 8 | -2/+15 |
| | | | | | | | | | | * If needle is 0, try (p[0] >> 16) & 0xff for UCS4 * Disable fastsearch_memchr_1char() if needle is zero for UCS2 and UCS4 | ||||
* | | Use _PyUnicode_CONVERT_BYTES() where applicable. | Antoine Pitrou | 2011-10-11 | 1 | -12/+17 |
| | | |||||
* | | PyUnicode_AsUnicodeCopy() now checks if PyUnicode_AsUnicode() failed | Victor Stinner | 2011-10-11 | 1 | -2/+5 |
| | | |||||
* | | Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead | Victor Stinner | 2011-10-11 | 1 | -3/+3 |
| | | |||||
* | | Reuse PyUnicode_Copy() in validate_and_copy_tuple() | Victor Stinner | 2011-10-11 | 1 | -3/+1 |
| | | |||||
* | | Issue #13136: speed up conversion between different character widths. | Antoine Pitrou | 2011-10-11 | 1 | -5/+14 |
| | | |||||
* | | Issue #13134: optimize finding single-character strings using memchr | Antoine Pitrou | 2011-10-11 | 1 | -0/+73 |
| | | |||||
* | | /* Remove unused code. It has been committed out since 2000 (!). */ | Antoine Pitrou | 2011-10-11 | 1 | -54/+0 |
| | | |||||
* | | Avoid exporting private helpers | Antoine Pitrou | 2011-10-10 | 1 | -6/+6 |
| | | | | | | | | (thanks "make smelly") | ||||
* | | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 8 | -28/+43 |
| | | |||||
* | | any_find_slice() doesn't use callbacks anymore | Victor Stinner | 2011-10-10 | 1 | -52/+43 |
| | | | | | | | | | | * Call directly the right find/rfind method: allow inlining functions * Remove Py_LOCAL_CALLBACK (added for any_find_slice) | ||||
* | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 8 | -50/+172 |
| | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | | Fix typo in the PyUnicode_Find() implementation | Antoine Pitrou | 2011-10-08 | 1 | -1/+1 |
| | | |||||
* | | Closes #12192: Document that mutating list methods do not return the ↵ | Georg Brandl | 2011-10-08 | 1 | -4/+4 |
| | | | | | | | | instance (original patch by Mike Hoy). | ||||
* | | Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE. | Martin v. Löwis | 2011-10-07 | 2 | -48/+46 |
| | | |||||
* | | PyUnicode_Join() calls directly memcpy() if all strings are of the same kind | Victor Stinner | 2011-10-07 | 1 | -7/+54 |
| | | |||||
* | | Fix formatting memory consumption with very large padding specifications | Antoine Pitrou | 2011-10-07 | 1 | -8/+28 |
| | | |||||
* | | str.replace(a, a) is now returning str unchanged if a is a | Victor Stinner | 2011-10-07 | 1 | -0/+2 |
| | | |||||
* | | Fix massive slowdown in string formatting with str.format. | Antoine Pitrou | 2011-10-07 | 1 | -128/+24 |
| | | | | | | | | | | | | | | | | | | | | Example: ./python -m timeit -s "f='{}' + '-' * 1024 + '{}'; s='abcd' * 16384" "f.format(s, s)" -> before: 547 usec per loop -> after: 13 usec per loop -> 3.2: 22.5 usec per loop -> 2.7: 12.6 usec per loop | ||||
* | | Fix massive slowdown in string formatting with the % operator | Antoine Pitrou | 2011-10-06 | 1 | -114/+127 |
| | | |||||
* | | Ensure that 1-char singletons get used | Antoine Pitrou | 2011-10-06 | 1 | -0/+8 |
| | | |||||
* | | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵ | Antoine Pitrou | 2011-10-06 | 3 | -85/+185 |
|\ \ | |/ | | | | | | | | | | | tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot. |