Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #26754: PyUnicode_FSDecoder() accepted a filename argument encoded as | Serhiy Storchaka | 2016-06-18 | 1 | -1/+7 |
|\ | | | | | | | an iterable of integers. Now only strings and byte-like objects are accepted. | ||||
| * | Issue #26754: PyUnicode_FSDecoder() accepted a filename argument encoded as | Serhiy Storchaka | 2016-06-18 | 1 | -1/+7 |
| | | | | | | | | an iterable of integers. Now only strings and byte-like objects are accepted. | ||||
* | | Issue #27171: Merge typo fixes from 3.5 | Martin Panter | 2016-06-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | | |||||
* | | Issue #26765: Moved common code and docstrings for bytes and bytearray methods | Serhiy Storchaka | 2016-05-04 | 1 | -10/+24 |
| | | | | | | | | to bytes_methods.c. | ||||
* | | Issue #15984: Merge PyUnicode doc from 3.5 | Martin Panter | 2016-04-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 1 | -1/+1 |
| | | | | | | | | This affects documentation, code comments, and a debugging messages. | ||||
* | | Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject(). | Serhiy Storchaka | 2016-04-13 | 1 | -399/+163 |
| | | |||||
* | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -4/+4 |
|\ \ | |/ | | | | | in places where Py_DECREF was used. | ||||
| * | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -4/+4 |
| | | | | | | | | in places where Py_DECREF was used. | ||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -4/+4 |
| | | |||||
* | | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
| * | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -1/+1 |
| | | | | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
* | | Merge 3.5 | Victor Stinner | 2016-03-01 | 1 | -9/+12 |
|\ \ | |/ | |||||
| * | Issue #26464: Fix unicode_fast_translate() again | Victor Stinner | 2016-03-01 | 1 | -9/+12 |
| | | | | | | | | Initialize i variable if the string is non-ASCII. | ||||
* | | Merge 3.5 | Victor Stinner | 2016-03-01 | 1 | -3/+4 |
|\ \ | |/ | |||||
| * | Fix str.translate() | Victor Stinner | 2016-03-01 | 1 | -3/+4 |
| | | | | | | | | | | | | Issue #26464: Fix str.translate() when string is ASCII and first replacements removes character, but next replacement uses a non-ASCII character or a string longer than 1 character. Regression introduced in Python 3.5.0. | ||||
* | | Merge 3.5 | Victor Stinner | 2016-01-27 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Fix resize_compact() | Victor Stinner | 2016-01-27 | 1 | -0/+2 |
| | | | | | | | | | | Issue #26217: resize_compact() must set wstr_length to 0 after freeing the wstr string. Otherwise, an assertion fails in _PyUnicode_CheckConsistency(). | ||||
* | | Issue #20440: More use of Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically. | ||||
| * | Issue #20440: More use of Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 1 | -1/+1 |
| | | | | | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically. | ||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -3/+3 |
| | | | | | | | | private functions. | ||||
* | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -6/+6 |
| | | |||||
* | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -8/+4 |
|\ \ | |/ | | | | | macro Py_SETREF. | ||||
| * | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -8/+4 |
| | | | | | | | | macro Py_SETREF. | ||||
* | | Issues #25890, #25891, #25892: Removed unused variables in Windows code. | Serhiy Storchaka | 2015-12-18 | 1 | -1/+0 |
| | | | | | | | | Reported by Alexander Riccio. | ||||
* | | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-03 | 1 | -0/+5 |
|\ \ | |/ | |||||
| * | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-03 | 1 | -0/+5 |
| |\ | |||||
| | * | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-03 | 1 | -0/+5 |
| | | | |||||
* | | | merge 3.5 (#25630) | Benjamin Peterson | 2015-11-15 | 1 | -0/+1 |
|\ \ \ | |/ / | |||||
| * | | make the PyUnicode_FSConverter cleanup set the decrefed argument to NULL ↵ | Benjamin Peterson | 2015-11-15 | 1 | -0/+1 |
| | | | | | | | | | | | | (closes #25630) | ||||
* | | | Issue #24821: Refactor STRINGLIB(fastsearch_memchr_1char) and split it on | Serhiy Storchaka | 2015-11-14 | 1 | -17/+16 |
| | | | | | | | | | | | | | | | STRINGLIB(find_char) and STRINGLIB(rfind_char) that can be used independedly without special preconditions. | ||||
* | | | Issue #25523: Merge a-to-an corrections from 3.5. | Serhiy Storchaka | 2015-11-02 | 1 | -2/+2 |
|\ \ \ | |/ / | |||||
| * | | Issue #25523: Merge a-to-an corrections from 3.4. | Serhiy Storchaka | 2015-11-02 | 1 | -2/+2 |
| |\ \ | | |/ | |||||
| | * | Issue #25523: Further a-to-an corrections. | Serhiy Storchaka | 2015-11-02 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #25353: Optimize unicode escape and raw unicode escape encoders to use | Victor Stinner | 2015-10-12 | 1 | -44/+69 |
| | | | | | | | | | | | | the new _PyBytesWriter API. | ||||
* | | | Writer APIs: use empty string singletons | Victor Stinner | 2015-10-12 | 1 | -9/+18 |
| | | | | | | | | | | | | | | | Modify _PyBytesWriter_Finish() and _PyUnicodeWriter_Finish() to return the empty bytes/Unicode string if the string is empty. | ||||
* | | | Optimize error handlers of ASCII and Latin1 encoders when the replacement | Victor Stinner | 2015-10-09 | 1 | -32/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string is pure ASCII: use _PyBytesWriter_WriteBytes(), don't check individual character. Cleanup unicode_encode_ucs1(): * Rename repunicode to rep * Clear rep object on error * Factorize code between bytes and unicode path | ||||
* | | | Add _PyBytesWriter_WriteBytes() to factorize the code | Victor Stinner | 2015-10-09 | 1 | -5/+3 |
| | | | |||||
* | | | _PyBytesWriter: simplify code to avoid "prealloc" parameters | Victor Stinner | 2015-10-09 | 1 | -30/+28 |
| | | | | | | | | | | | | | | | Substract preallocate bytes from min_size before calling _PyBytesWriter_Prepare(). | ||||
* | | | Issue #25318: Fix backslashreplace() | Victor Stinner | 2015-10-09 | 1 | -1/+1 |
| | | | | | | | | | | | | Fix code to estimate the needed space. | ||||
* | | | Issue #25318: Avoid sprintf() in backslashreplace() | Victor Stinner | 2015-10-09 | 1 | -7/+18 |
| | | | | | | | | | | | | | | | | | | Rewrite backslashreplace() to be closer to PyCodec_BackslashReplaceErrors(). Add also unit tests for non-BMP characters. | ||||
* | | | Issue #25318: Move _PyBytesWriter to bytesobject.c | Victor Stinner | 2015-10-09 | 1 | -210/+0 |
| | | | | | | | | | | | | Declare also the private API in bytesobject.h. | ||||
* | | | Optimize backslashreplace error handler | Victor Stinner | 2015-10-09 | 1 | -49/+144 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #25318: Optimize backslashreplace and xmlcharrefreplace error handlers in UTF-8 encoder. Optimize also backslashreplace error handler for ASCII and Latin1 encoders. Use the new _PyBytesWriter API to optimize these error handlers for the encoders. It avoids to create an exception and call the slow implementation of the error handler. | ||||
* | | | Issue #25318: Add _PyBytesWriter API | Victor Stinner | 2015-10-09 | 1 | -69/+247 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new private API to optimize Unicode encoders. It uses a small buffer allocated on the stack and supports overallocation. Use _PyBytesWriter API for UCS1 (ASCII and Latin1) and UTF-8 encoders. Enable overallocation for the UTF-8 encoder with error handlers. unicode_encode_ucs1(): initialize collend to collstart+1 to not check the current character twice, we already know that it is not ASCII. | ||||
* | | | Issue #25301: Fix compatibility with ISO C90 | Victor Stinner | 2015-10-05 | 1 | -1/+5 |
| | | | |||||
* | | | Issue #25301: The UTF-8 decoder is now up to 15 times as fast for error | Victor Stinner | 2015-10-05 | 1 | -9/+39 |
| | | | | | | | | | | | | handlers: ``ignore``, ``replace`` and ``surrogateescape``. | ||||
* | | | Fix _PyUnicodeWriter_PrepareKind() | Victor Stinner | 2015-10-03 | 1 | -7/+18 |
| | | | | | | | | | | | | | | | | | | Initialize kind to 0 (PyUnicode_WCHAR_KIND) to ensure that _PyUnicodeWriter_PrepareKind() handles correctly read-only buffer: copy the buffer. | ||||
* | | | Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: | Serhiy Storchaka | 2015-10-02 | 1 | -9/+12 |
|\ \ \ | |/ / | | | | | | | | | | | | | | | | 1. Non-ASCII bytes were accepted after shift sequence. 2. A low surrogate could be emitted in case of error in high surrogate. 3. In some circumstances the '\xfd' character was produced instead of the replacement character '\ufffd' (due to a bug in _PyUnicodeWriter). |