Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342) | INADA Naoki | 2018-01-27 | 1 | -0/+5 |
| | |||||
* | bpo-31979: Simplify transforming decimals to ASCII (#4336) | Serhiy Storchaka | 2017-11-13 | 1 | -5/+8 |
| | | | | | in int(), float() and complex() parsers. This also speeds up parsing non-ASCII numbers by around 20%. | ||||
* | bpo-30978: str.format_map() now passes key lookup exceptions through. (#2790) | Serhiy Storchaka | 2017-08-03 | 1 | -0/+7 |
| | | | Previously any exception was replaced with a KeyError exception. | ||||
* | bpo-29919: Remove unused imports found by pyflakes (#137) | Victor Stinner | 2017-03-27 | 1 | -1/+0 |
| | | | Make also minor PEP8 coding style fixes on modified imports. | ||||
* | bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting ↵ | Martijn Pieters | 2017-02-23 | 1 | -0/+9 |
| | | | | | | | | operations (#51) When you use `'%s' % SubClassOfStr()`, where `SubClassOfStr.__rmod__` exists, the reverse operation is ignored as normally such string formatting operations use the `PyUnicode_Format()` fast path. This patch tests for subclasses of `str` first and picks the slow path in that case. Patch by Martijn Pieters. | ||||
* | Issue #29145: Merge test from 3.6 | Martin Panter | 2017-01-14 | 1 | -0/+7 |
|\ | |||||
| * | Merge tests from 3.5 | Martin Panter | 2017-01-14 | 1 | -0/+7 |
| |\ | |||||
| | * | Issues #1621, #29145: Test for str.join() overflow | Martin Panter | 2017-01-12 | 1 | -0/+7 |
| | | | |||||
* | | | Issue #28992: Use bytes.fromhex(). | Serhiy Storchaka | 2016-12-21 | 1 | -7/+4 |
| | | | |||||
* | | | Issue #28822: Adjust indices handling of PyUnicode_FindChar(). | Xiang Zhang | 2016-12-20 | 1 | -0/+23 |
|/ / | |||||
* | | Merge spelling and grammar from 3.5 | Martin Panter | 2016-12-18 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix spelling and grammar in code comments and documentation | Martin Panter | 2016-12-18 | 1 | -1/+1 |
| | | |||||
* | | Issue 28128: Print out better error/warning messages for invalid string ↵ | Eric V. Smith | 2016-10-31 | 1 | -7/+0 |
| | | | | | | | | escapes. Backport to 3.6. | ||||
* | | Merge from 3.5. | Serhiy Storchaka | 2016-10-08 | 1 | -1/+44 |
|\ \ | |/ | |||||
| * | Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters(). | Serhiy Storchaka | 2016-10-08 | 1 | -1/+44 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | test_invalid_sequences seems don't have to stay in CAPITest. | Serhiy Storchaka | 2016-10-02 | 1 | -7/+7 |
| | | | | | | | | Reported by Xiang Zhang. | ||||
* | | Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4(). | Serhiy Storchaka | 2016-10-02 | 1 | -0/+17 |
|\ \ | |/ | | | | | Original patch by Xiang Zhang. | ||||
| * | Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4(). | Serhiy Storchaka | 2016-10-02 | 1 | -0/+17 |
| | | | | | | | | Original patch by Xiang Zhang. | ||||
* | | Moved Unicode C API related tests to separate test class. | Serhiy Storchaka | 2016-10-02 | 1 | -114/+117 |
|\ \ | |/ | |||||
| * | Moved Unicode C API related tests to separate test class. | Serhiy Storchaka | 2016-10-02 | 1 | -114/+117 |
| | | |||||
* | | #27364: Deprecate invalid escape strings in str/byutes. | R David Murray | 2016-09-08 | 1 | -0/+7 |
| | | | | | | | | Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter. | ||||
* | | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -2/+2 |
| | | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | | Anti-registration of various ABC methods. | Guido van Rossum | 2016-08-18 | 1 | -0/+23 |
|/ | | | | | | | | | | - Issue #25958: Support "anti-registration" of special methods from various ABCs, like __hash__, __iter__ or __len__. All these (and several more) can be set to None in an implementation class and the behavior will be as if the method is not defined at all. (Previously, this mechanism existed only for __hash__, to make mutable classes unhashable.) Code contributed by Andrew Barnert and Ivan Levkivskyi. | ||||
* | 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 #26712: Unify (r)split, (l/r)strip tests into string_tests | Martin Panter | 2016-04-10 | 1 | -4/+0 |
| | | | | This eliminates a few redundant test cases. | ||||
* | Issue #26257: Eliminate buffer_tests.py and fix ByteArrayAsStringTest | Martin Panter | 2016-04-06 | 1 | -8/+8 |
| | | | | | | | | | | | | | | | | ByteArrayAsStringTest.fixtype() was converting test data to bytes, not byte- array, therefore many of the test cases inherited in this class were not actually being run on the bytearray type. The tests in buffer_tests.py were redundant with methods in string_tests .MixinStrUnicodeUserStringTest and string_tests.CommonTest. These methods are now moved into string_tests.BaseTest, where they will also get run for bytes and bytearray. This change also moves test_additional_split(), test_additional_rsplit(), and test_strip() from CommonTest to BaseTest, meaning these tests are now run for bytes and bytearray. I plan to eliminate redundancies with existing tests in test_bytes.py soon. | ||||
* | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -0/+4 |
| | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
* | Issue #26464: Fix unicode_fast_translate() again | Victor Stinner | 2016-03-01 | 1 | -4/+10 |
| | | | | Initialize i variable if the string is non-ASCII. | ||||
* | Fix str.translate() | Victor Stinner | 2016-03-01 | 1 | -0/+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. | ||||
* | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-02 | 1 | -0/+17 |
|\ | |||||
| * | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-02 | 1 | -0/+17 |
| | | |||||
* | | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 1 | -4/+7 |
|\ \ | |/ | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | ||||
| * | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 1 | -4/+7 |
| | | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | ||||
* | | Issue #22643: Skip test_case_operation_overflow on computers with low memory. | Serhiy Storchaka | 2015-11-07 | 1 | -1/+9 |
|\ \ | |/ | |||||
| * | Issue #22643: Skip test_case_operation_overflow on computers with low memory. | Serhiy Storchaka | 2015-11-07 | 1 | -1/+9 |
| | | |||||
* | | Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: | Serhiy Storchaka | 2015-10-02 | 1 | -1/+2 |
|\ \ | |/ | | | | | | | | | | | 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). | ||||
| * | Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: | Serhiy Storchaka | 2015-10-02 | 1 | -1/+2 |
| | | | | | | | | | | 1. Non-ASCII bytes were accepted after shift sequence. 2. A low surrogate could be emitted in case of error in high surrogate. | ||||
* | | Issue #22681: Added support for the koi8_t encoding. | Serhiy Storchaka | 2015-05-12 | 1 | -3/+4 |
| | | |||||
* | | Issue #22682: Added support for the kz1048 encoding. | Serhiy Storchaka | 2015-05-12 | 1 | -2/+2 |
| | | |||||
* | | Added explicit tests for issue #23803. | Serhiy Storchaka | 2015-03-29 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #23803: Fixed str.partition() and str.rpartition() when a separator | Serhiy Storchaka | 2015-03-29 | 1 | -0/+2 |
| | | | | | | | | is wider then partitioned string. | ||||
* | | Added tests for mixed kinds of Unicode strings. | Serhiy Storchaka | 2015-03-24 | 1 | -0/+150 |
|\ \ | |/ | |||||
| * | Added tests for mixed kinds of Unicode strings. | Serhiy Storchaka | 2015-03-24 | 1 | -0/+150 |
| | | |||||
* | | Issue #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 1 | -47/+9 |
|\ \ | |/ | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__. | ||||
| * | Issue #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 1 | -47/+9 |
| | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. | ||||
* | | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 1 | -2/+2 |
| | | |||||
* | | merge 3.4 (#22643) | Benjamin Peterson | 2014-10-15 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | merge 3.3 (#22643) | Benjamin Peterson | 2014-10-15 | 1 | -0/+1 |
| |\ | |||||
| | * | test is cpython only | Benjamin Peterson | 2014-10-15 | 1 | -0/+1 |
| | | |