179 Commits (58cf607d13c178f41aed05458296b68e985c5fff)

Author SHA1 Message Date
Serhiy Storchaka 58cf607d13 Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates. 12 years ago
Ezio Melotti 745d54d2fa #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). 12 years ago
Victor Stinner cc64eb5b9f Issue #18408: Fix bytearrayiter.partition()/rpartition(), handle 12 years ago
Serhiy Storchaka 8fa8ee3970 Issue #18701: Remove support of old CPython versions (<3.0) from C code. 13 years ago
Raymond Hettinger b1b915c796 Issue 18719: Remove a false optimization 13 years ago
Antoine Pitrou 9ed5f27266 Issue #18722: Remove uses of the "register" keyword in C code. 13 years ago
Benjamin Peterson d2b58a9880 only recursively expand in the format spec (closes #17644) 13 years ago
Benjamin Peterson 4d94474ba3 rewrite the parsing of field names to be more consistent wrt recursive expansion 13 years ago
Ezio Melotti 6b02772c13 Remove trailing whitespace. 13 years ago
Victor Stinner 8f674ccd64 Close #17694: Add minimum length to _PyUnicodeWriter 13 years ago
Victor Stinner 76b3b2726c stringlib: remove unused STRINGLIB_RESIZE macro 13 years ago
Serhiy Storchaka e2cef885a2 Issue #16061: Speed up str.replace() for replacing 1-character strings. 13 years ago
Victor Stinner 7efa3b8242 Close #13126: "Simplify" FASTSEARCH() code to help the compiler to emit more 13 years ago
Victor Stinner cfc4c13b04 Add _PyUnicodeWriter_WriteSubstring() function 13 years ago
Serhiy Storchaka 18809fa94e Remove unused defines. 13 years ago
Antoine Pitrou 4de7457009 Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter. 13 years ago
Serhiy Storchaka 18ba40b945 Check for NULL before the pointer aligning in fastsearch_memchr_1char. 13 years ago
Christian Heimes 5f7e8dab11 Issue #16592: stringlib_bytes_join doesn't raise MemoryError on allocation failure 13 years ago
Victor Stinner ab60de478d Issue #8271: Fix compilation on Windows 13 years ago
Ezio Melotti f7ed5d111b #8271: the utf-8 decoder now outputs the correct number of U+FFFD characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. 13 years ago
Mark Dickinson fb90c0934c Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 13 years ago
Mark Dickinson 75d3600466 Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 13 years ago
Antoine Pitrou 6f7b0da6bc Issue #12805: Make bytes.join and bytearray.join faster when the separator is empty. 13 years ago
Christian Heimes 743e0cd6b5 Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified 13 years ago
Antoine Pitrou cfc22b4a9b Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects. 13 years ago
Antoine Pitrou ca8aa4acf6 Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. 13 years ago
Victor Stinner b3f5501250 Close #15534: Fix a typo in the fast search function of the string library (_s => s) 14 years ago
Mark Dickinson 01ac8b6ab1 Use correct types for ASCII_CHAR_MASK integer constants. 14 years ago
Mark Dickinson 106c4145ff Issue #14923: Optimize continuation-byte check in UTF-8 decoding. Patch by Serhiy Storchaka. 14 years ago
Antoine Pitrou a759d4e9f4 Make private function static (from `make smelly`) 14 years ago
Antoine Pitrou 27f6a3b0bf Issue #15026: utf-16 encoding is now significantly faster (up to 10x). 14 years ago
Victor Stinner d7b7c7472b Issue #14993: Use standard "unsigned char" instead of a unsigned char bitfield 14 years ago
Victor Stinner d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 14 years ago
Antoine Pitrou 63065d761e Issue #14624: UTF-16 decoding is now 3x to 4x faster on various inputs. 14 years ago
Antoine Pitrou ca5f91b888 Issue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka. 14 years ago
Victor Stinner 3b1a74a9c3 Rename unicode_write_t structure and its methods to "_PyUnicodeWriter" 14 years ago
Victor Stinner ee4544c920 Issue #14744: Inline unicode_writer_write_char() and unicode_write_str() 14 years ago
Victor Stinner 202fdca133 Close #14716: str.format() now uses the new "unicode writer" API instead of the 14 years ago
Victor Stinner 41a863cb81 Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator 14 years ago
Benjamin Peterson 21e0da228d remove some usage of Py_UNICODE_TOUPPER/LOWER 14 years ago
Victor Stinner 6099a03202 Issue #13624: Write a specialized UTF-8 encoder to allow more optimization 14 years ago
Victor Stinner f8eac00779 Issue #13623: Fix a performance regression introduced by issue #12170 in 14 years ago
Victor Stinner b37b17423b Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) 14 years ago
Antoine Pitrou 0a3229de6b Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case. 14 years ago
Victor Stinner 0fc35196bb stringlib: remove unused STRINGLIB_FILL 14 years ago
Victor Stinner 7931d9a951 Replace PyUnicodeObject type by PyObject 14 years ago
Victor Stinner 9db1a8b69f Replace PyUnicodeObject* by PyObject* where it was irrevelant 14 years ago
Antoine Pitrou ac65d96777 Issue #12170: The count(), find(), rfind(), index() and rindex() methods 14 years ago
Antoine Pitrou 5b9f4c1539 Fix typo 14 years ago
Antoine Pitrou c198d0599b Add a comment explaining this heuristic. 14 years ago