summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks ↵Mark Dickinson2011-10-231-15/+23
| | | | Stefan Krah.
* Issue #13201: equality for range objects is now based on equality of the ↵Mark Dickinson2011-10-231-2/+133
| | | | underlying sequences. Thanks Sven Marnach for the patch.
* Merge issue 1294232 patch from 3.2Nick Coghlan2011-10-231-20/+41
|\
| * Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan2011-10-231-20/+41
| | | | | | | | metaclass inheritance. Patch by Daniel Urban.
* | Fix unicode_subtype_new() on debug buildVictor Stinner2011-10-221-1/+1
| | | | | | | | Patch written by Stefan Behnel.
* | Remove unused variable.Ezio Melotti2011-10-211-1/+0
| |
* | #12753: Add support for Unicode name aliases and named sequences.Ezio Melotti2011-10-211-1/+1
| |
* | Issue #12170: The count(), find(), rfind(), index() and rindex() methodsAntoine Pitrou2011-10-203-31/+133
| | | | | | | | | | of bytes and bytearray objects now accept an integer between 0 and 255 as their first argument. Patch by Petri Lehtinen.
* | 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).