Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18780: code cleanup. | Ethan Furman | 2013-08-31 | 1 | -34/+19 |
| | |||||
* | Close #18780: %-formatting now prints value for int subclasses with %d, %i, ↵ | Ethan Furman | 2013-08-31 | 1 | -0/+47 |
| | | | | and %u codes. | ||||
* | Issue #16741: Remove testing of implementation artifact. | Serhiy Storchaka | 2013-08-03 | 1 | -2/+0 |
|\ | |||||
| * | Issue #16741: Remove testing of implementation artifact. | Serhiy Storchaka | 2013-08-03 | 1 | -2/+0 |
| | | |||||
* | | Merge str.center tests from 3.3. | Ezio Melotti | 2013-07-08 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Add a couple of tests for str.center with non-ASCII chars. | Ezio Melotti | 2013-07-08 | 1 | -0/+9 |
| | | |||||
* | | Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise | Serhiy Storchaka | 2013-06-23 | 1 | -0/+2 |
|\ \ | |/ | | | | | OverflowError when an argument of %c format is out of range. | ||||
| * | Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise | Serhiy Storchaka | 2013-06-23 | 1 | -0/+2 |
| | | | | | | | | OverflowError when an argument of %c format is out of range. | ||||
* | | Add tests for issue #18183. | Serhiy Storchaka | 2013-06-12 | 1 | -3/+14 |
|\ \ | |/ | |||||
| * | Add tests for issue #18183. | Serhiy Storchaka | 2013-06-12 | 1 | -3/+15 |
| | | |||||
* | | merge 3.3 (#18183) | Benjamin Peterson | 2013-06-10 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵ | Benjamin Peterson | 2013-06-10 | 1 | -0/+3 |
| | | | | | | | | (see #18183) | ||||
* | | rewrite the parsing of field names to be more consistent wrt recursive expansion | Benjamin Peterson | 2013-05-17 | 1 | -1/+9 |
| | | |||||
* | | merge 3.3 | Benjamin Peterson | 2013-05-17 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | only recursively expand in the format spec (closes #17644) | Benjamin Peterson | 2013-05-17 | 1 | -0/+2 |
| | | |||||
* | | Issue #7330: Implement width and precision (ex: "%5.3s") for the format string | Victor Stinner | 2013-05-06 | 1 | -54/+175 |
| | | | | | | | | of PyUnicode_FromFormat() function, original patch written by Ysj Ray. | ||||
* | | Issue #17615: Add tests comparing Unicode strings of different kinds | Victor Stinner | 2013-04-08 | 1 | -0/+85 |
| | | | | | | | | Kinds: ascii, latin, bmp, astral. | ||||
* | | Merge DeprecationWarnings silencing in test_unicode from 3.3. | Ezio Melotti | 2013-02-20 | 1 | -9/+11 |
|\ \ | |/ | |||||
| * | Silence DeprecationWarnings in test_unicode. | Ezio Melotti | 2013-02-20 | 1 | -9/+11 |
| | | |||||
* | | (Merge 3.3) Issue #17137: When an Unicode string is resized, the internal wide | Victor Stinner | 2013-02-07 | 1 | -0/+15 |
|\ \ | |/ | | | | | character string (wstr) format is now cleared. | ||||
| * | Issue #17137: When an Unicode string is resized, the internal wide character | Victor Stinner | 2013-02-07 | 1 | -0/+15 |
| | | | | | | | | string (wstr) format is now cleared. | ||||
* | | #16910: merge with 3.3. | Ezio Melotti | 2013-01-10 | 1 | -5/+3 |
|\ \ | |/ | |||||
| * | #16910: test_bytes, test_unicode, and test_userstring now work with unittest ↵ | Ezio Melotti | 2013-01-10 | 1 | -5/+3 |
| | | | | | | | | test discovery. Patch by Zachary Ware. | ||||
* | | Issue #9856: Replace deprecation warinigs to raising TypeError in ↵ | Andrew Svetlov | 2012-12-23 | 1 | -5/+3 |
| | | | | | | | | | | | | object.__format__ Patch by Florent Xicluna. | ||||
* | | Merge from 3.3: Improve str() and object.__str__() docs (issue #13538). | Chris Jerdonek | 2012-11-21 | 1 | -0/+20 |
|\ \ | |/ | |||||
| * | Improve str() and object.__str__() documentation (issue #13538). | Chris Jerdonek | 2012-11-21 | 1 | -0/+20 |
| | | |||||
* | | #8271: merge with 3.3. | Ezio Melotti | 2012-11-04 | 1 | -1/+221 |
|\ \ | |/ | |||||
| * | #8271: the utf-8 decoder now outputs the correct number of U+FFFD ↵ | Ezio Melotti | 2012-11-04 | 1 | -1/+221 |
| | | | | | | | | characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. | ||||
* | | Issue #14700: merge tests from 3.3. | Mark Dickinson | 2012-10-28 | 1 | -0/+27 |
|\ \ | |/ | |||||
| * | Issue #14700: merge tests from 3.2. | Mark Dickinson | 2012-10-28 | 1 | -0/+27 |
| |\ | |||||
| | * | Issue #14700: Fix buggy overflow checks for large precision and width in ↵ | Mark Dickinson | 2012-10-28 | 1 | -0/+27 |
| | | | | | | | | | | | | new-style and old-style formatting. | ||||
* | | | Issue #16147: PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer | Victor Stinner | 2012-10-06 | 1 | -2/+12 |
| | | | | | | | | | | | | on the heap to format numbers. | ||||
* | | | Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API | Victor Stinner | 2012-10-06 | 1 | -0/+16 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify the code: replace 4 steps with one unique step using the _PyUnicodeWriter API. PyUnicode_Format() has the same design. It avoids to store intermediate results which require to allocate an array of pointers on the heap. * Use the _PyUnicodeWriter API for speed (and its convinient API): overallocate the buffer to reduce the number of "realloc()" * Implement "width" and "precision" in Python, don't rely on sprintf(). It avoids to need of a temporary buffer allocated on the heap: only use a small buffer allocated in the stack. * Add _PyUnicodeWriter_WriteCstr() function * Split PyUnicode_FromFormatV() into two functions: add unicode_fromformat_arg(). * Inline parse_format_flags(): the format of an argument is now only parsed once, it's no more needed to have a subfunction. * Optimize PyUnicode_FromFormatV() for characters between two "%" arguments: search the next "%" and copy the substring in one chunk, instead of copying character per character. | ||||
* | | add another testcase | Benjamin Peterson | 2012-08-05 | 1 | -0/+1 |
| | | |||||
* | | Remove a now worthless test. | Brett Cannon | 2012-05-12 | 1 | -8/+0 |
| | | |||||
* | | unicode_writer_finish() checks string consistency | Victor Stinner | 2012-05-09 | 1 | -0/+4 |
| | | |||||
* | | Close #14648: Compute correctly maxchar in str.format() for substrin | Victor Stinner | 2012-04-23 | 1 | -2/+8 |
| | | |||||
* | | inherit maxchar of field value where needed (closes #14648) | Benjamin Peterson | 2012-04-23 | 1 | -0/+2 |
| | | |||||
* | | str.format_map tests don't do what they say: fix to actually implement the ↵ | Eric V. Smith | 2012-03-12 | 1 | -6/+9 |
|\ \ | |/ | | | | | intent of the test. Closes #13450. Patch by Akira Li. | ||||
| * | str.format_map tests don't do what they say: fix to actually implement the ↵ | Eric V. Smith | 2012-03-12 | 1 | -6/+9 |
| | | | | | | | | intent of the test. Closes #13450. | ||||
| * | Issue #13093: Fix error handling on PyUnicode_EncodeDecimal() | Victor Stinner | 2011-11-22 | 1 | -0/+36 |
| | | | | | | | | | | * Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII() * Remove the unused "e" variable in replace() | ||||
* | | add str.casefold() (closes #13752) | Benjamin Peterson | 2012-01-14 | 1 | -0/+8 |
| | | |||||
* | | use full unicode mappings for upper/lower/title case (#12736) | Benjamin Peterson | 2012-01-11 | 1 | -0/+44 |
| | | | | | | | | Also broaden the category of characters that count as lowercase/uppercase. | ||||
* | | Close #13093: PyUnicode_EncodeDecimal() doesn't support error handlers | Victor Stinner | 2011-11-25 | 1 | -14/+4 |
| | | | | | | | | | | different than "strict" anymore. The caller was unable to compute the size of the output buffer: it depends on the error handler. | ||||
* | | (Merge 3.2) Issue #13093: Fix error handling on PyUnicode_EncodeDecimal() | Victor Stinner | 2011-11-22 | 1 | -0/+6 |
| | | |||||
* | | Add a test on str.__getnewargs__() | Victor Stinner | 2011-11-22 | 1 | -0/+7 |
| | | | | | | | | It tests indirectly PyUnicode_Copy(): ensure that the string is a copy. | ||||
* | | Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API | Victor Stinner | 2011-11-21 | 1 | -0/+30 |
| | | | | | | | | | | Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII(). | ||||
* | | "unicode_internal" codec has been deprecated: fix related tests | Victor Stinner | 2011-11-15 | 1 | -7/+15 |
| | | |||||
* | | Issue #13333: The UTF-7 decoder now accepts lone surrogates | Antoine Pitrou | 2011-11-15 | 1 | -4/+12 |
|\ \ | |/ | | | | | (the encoder already accepts them). | ||||
| * | Issue #13333: The UTF-7 decoder now accepts lone surrogates | Antoine Pitrou | 2011-11-15 | 1 | -4/+12 |
| | | | | | | | | (the encoder already accepts them). |