Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace PyUnicodeObject type by PyObject | Victor Stinner | 2011-11-03 | 2 | -146/+132 |
| | | | | | * _PyUnicode_CheckConsistency() now takes a PyObject* instead of void* * Remove now useless casts to PyObject* | ||||
* | Cleanup decode_code_page_stateful() and encode_code_page() | Victor Stinner | 2011-11-03 | 1 | -111/+75 |
| | | | | | | * Fix decode_code_page_errors() result * Inline decode_code_page() and encode_code_page_chunk() * Replace the PyUnicodeObject type by PyObject | ||||
* | Adapt the code page encoder to the new unicode_encode_call_errorhandler() | Victor Stinner | 2011-11-03 | 1 | -34/+50 |
| | | | | The code is not correct, but at least it doesn't crash anymore. | ||||
* | Fix a compile error (apparently Windows only) introduced in 295fdfd4f422 | Brian Curtin | 2011-11-02 | 1 | -2/+3 |
| | |||||
* | Port UCS1 and charmap codecs to new API. | Martin v. Löwis | 2011-11-02 | 1 | -84/+127 |
| | |||||
* | Introduce PyObject* API for raising encode errors. | Martin v. Löwis | 2011-11-02 | 1 | -3/+49 |
| | |||||
* | Drop Py_UCS4_ functions. Closes #13246. | Martin v. Löwis | 2011-10-31 | 2 | -101/+90 |
| | |||||
* | merge 3.2 | Benjamin Peterson | 2011-10-30 | 1 | -1/+1 |
|\ | |||||
| * | remove unused variable | Benjamin Peterson | 2011-10-30 | 1 | -1/+1 |
| | | |||||
* | | Fix the return value of set_discard (issue #10519) | Petri Lehtinen | 2011-10-30 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | Fix the return value of set_discard (issue #10519) | Petri Lehtinen | 2011-10-30 | 1 | -2/+3 |
| | | |||||
* | | Avoid unnecessary recursive function calls (#closes #10519) | Petri Lehtinen | 2011-10-30 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Avoid unnecessary recursive function calls (closes #10519) | Petri Lehtinen | 2011-10-30 | 1 | -2/+2 |
| | | |||||
* | | PyUnicode_AsUnicodeCopy() uses PyUnicode_AsUnicodeAndSize() to get directly ↵ | Victor Stinner | 2011-10-23 | 1 | -4/+4 |
| | | | | | | | | the length | ||||
* | | Fix PyUnicode_InternImmortal(): PyUnicode_InternInPlace() may changes *p | Victor Stinner | 2011-10-23 | 1 | -3/+1 |
| | | |||||
* | | Cast directly to unsigned char, instead of using Py_CHARMASK | Victor Stinner | 2011-10-23 | 1 | -2/+2 |
| | | | | | | | | We don't need "& 0xff" on an unsigned char. | ||||
* | | Replace PyUnicodeObject* by PyObject* where it was irrevelant | Victor Stinner | 2011-10-23 | 2 | -143/+130 |
| | | | | | | | | | | | | A Unicode string can now be a PyASCIIObject, PyCompactUnicodeObject or PyUnicodeObject. Aliasing a PyASCIIObject* or PyCompactUnicodeObject* to PyUnicodeObject* is wrong | ||||
* | | Fix data variable in _PyUnicode_Dump() for compact ASCII | Victor Stinner | 2011-10-23 | 1 | -2/+10 |
| | | |||||
* | | Remove last references to the removed Unicode free list | Victor Stinner | 2011-10-23 | 1 | -23/+0 |
| | | |||||
* | | PyUnicode_FSDecoder() ensures that the decoded string is ready | Victor Stinner | 2011-10-26 | 1 | -0/+4 |
| | | |||||
* | | merge heads | Petri Lehtinen | 2011-10-24 | 1 | -15/+23 |
|\ \ | |||||
| * | | Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks ↵ | Mark Dickinson | 2011-10-23 | 1 | -15/+23 |
| | | | | | | | | | | | | Stefan Krah. | ||||
* | | | Merge 3.2 | Petri Lehtinen | 2011-10-24 | 1 | -4/+12 |
|\ \ \ | |/ / |/| / | |/ | |||||
| * | Issue #13018: Fix reference leaks in error paths in dictobject.c. | Petri Lehtinen | 2011-10-24 | 1 | -4/+12 |
| | | | | | | | | Patch by Suman Saha. | ||||
* | | Issue #13201: equality for range objects is now based on equality of the ↵ | Mark Dickinson | 2011-10-23 | 1 | -2/+133 |
| | | | | | | | | underlying sequences. Thanks Sven Marnach for the patch. | ||||
* | | Merge issue 1294232 patch from 3.2 | Nick Coghlan | 2011-10-23 | 1 | -20/+41 |
|\ \ | |/ | |||||
| * | Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵ | Nick Coghlan | 2011-10-23 | 1 | -20/+41 |
| | | | | | | | | metaclass inheritance. Patch by Daniel Urban. | ||||
* | | Fix unicode_subtype_new() on debug build | Victor Stinner | 2011-10-22 | 1 | -1/+1 |
| | | | | | | | | Patch written by Stefan Behnel. | ||||
* | | Remove unused variable. | Ezio Melotti | 2011-10-21 | 1 | -1/+0 |
| | | |||||
* | | #12753: Add support for Unicode name aliases and named sequences. | Ezio Melotti | 2011-10-21 | 1 | -1/+1 |
| | | |||||
* | | Issue #12170: The count(), find(), rfind(), index() and rindex() methods | Antoine Pitrou | 2011-10-20 | 3 | -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.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 |
| | |