summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.2Benjamin Peterson2011-10-191-5/+4
|\
| * adjust braces a bitBenjamin Peterson2011-10-191-5/+4
| |
* | Add consistency check to _PyUnicode_New()Victor Stinner2011-10-181-0/+1
| |
* | Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignoreVictor Stinner2011-10-181-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 Pitrou2011-10-181-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 Pitrou2011-10-181-0/+5
| | | | | | | | | | generator.throw() now gets the traceback from the passed exception's `__traceback__` attribute. Patch by Petri Lehtinen.
* | Fix typoAntoine Pitrou2011-10-171-1/+1
| |
* | merge 3.2 (#13199)Benjamin Peterson2011-10-171-1/+5
|\ \ | |/
| * plug possible refleak (closes #13199)Benjamin Peterson2011-10-171-1/+5
| |
* | remove some duplicationBenjamin Peterson2011-10-151-10/+4
| |
* | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-142-3/+4
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-1410-29/+29
| |
* | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner2011-10-144-67/+63
| |
* | dictviews_or() uses _Py_identifierVictor Stinner2011-10-131-1/+3
| |
* | Use GetAttrId directly. Proposed by Amaury.Martin v. Löwis2011-10-131-8/+1
| |
* | Reuse the stringlib in findchar(), and make its signature more convenientAntoine Pitrou2011-10-131-39/+41
| |
* | Add a comment explaining this heuristic.Antoine Pitrou2011-10-131-0/+3
| |
* | Simplify heuristic for when to use memchrAntoine Pitrou2011-10-131-11/+1
| |
* | Optimize unicode_subscript() for step != 1 and ascii stringsVictor Stinner2011-10-121-8/+12
| |
* | Don't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX()Victor Stinner2011-10-121-2/+3
| |
* | Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchrVictor Stinner2011-10-121-0/+8
| |
* | Issue #13155: Optimize finding the optimal character width of an unicode stringAntoine Pitrou2011-10-122-87/+205
| |
* | Unicode replace() avoids calling unicode_adjust_maxchar() when it's uselessVictor Stinner2011-10-121-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 Pitrou2011-10-121-184/+349
| |
* | Backed out changeset 952d91a7d376Victor Stinner2011-10-111-1/+1
| | | | | | | | If maxchar == PyUnicode_MAX_CHAR_VALUE(unicode), we do an useless copy.
* | Relax conditionAntoine Pitrou2011-10-111-1/+1
| |
* | stringlib: Fix STRINGLIB_STR for UCS2/UCS4Victor Stinner2011-10-112-2/+2
| |
* | Fix compiler warning in _PyUnicode_FromUCS2()Victor Stinner2011-10-111-1/+1
| |
* | Fix fastsearch for UCS2 and UCS4Victor Stinner2011-10-118-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 Pitrou2011-10-111-12/+17
| |
* | PyUnicode_AsUnicodeCopy() now checks if PyUnicode_AsUnicode() failedVictor Stinner2011-10-111-2/+5
| |
* | Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH insteadVictor Stinner2011-10-111-3/+3
| |
* | Reuse PyUnicode_Copy() in validate_and_copy_tuple()Victor Stinner2011-10-111-3/+1
| |
* | Issue #13136: speed up conversion between different character widths.Antoine Pitrou2011-10-111-5/+14
| |
* | Issue #13134: optimize finding single-character strings using memchrAntoine Pitrou2011-10-111-0/+73
| |
* | /* Remove unused code. It has been committed out since 2000 (!). */Antoine Pitrou2011-10-111-54/+0
| |
* | Avoid exporting private helpersAntoine Pitrou2011-10-101-6/+6
| | | | | | | | (thanks "make smelly")
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-108-28/+43
| |
* | any_find_slice() doesn't use callbacks anymoreVictor Stinner2011-10-101-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öwis2011-10-098-50/+172
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Fix typo in the PyUnicode_Find() implementationAntoine Pitrou2011-10-081-1/+1
| |
* | Closes #12192: Document that mutating list methods do not return the ↵Georg Brandl2011-10-081-4/+4
| | | | | | | | instance (original patch by Mike Hoy).
* | Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.Martin v. Löwis2011-10-072-48/+46
| |
* | PyUnicode_Join() calls directly memcpy() if all strings are of the same kindVictor Stinner2011-10-071-7/+54
| |
* | Fix formatting memory consumption with very large padding specificationsAntoine Pitrou2011-10-071-8/+28
| |
* | str.replace(a, a) is now returning str unchanged if a is aVictor Stinner2011-10-071-0/+2
| |
* | Fix massive slowdown in string formatting with str.format.Antoine Pitrou2011-10-071-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 % operatorAntoine Pitrou2011-10-061-114/+127
| |
* | Ensure that 1-char singletons get usedAntoine Pitrou2011-10-061-0/+8
| |
* | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵Antoine Pitrou2011-10-063-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.