Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-42506: Fix unexpected output in test_format (GH-23564) | Zackery Spytz | 2020-11-30 | 1 | -2/+2 |
| | |||||
* | bpo-42224: Fix test_format when locale does not expect number grouping ↵ | Lysandros Nikolaou | 2020-11-02 | 1 | -2/+5 |
| | | | | (GH-23067) | ||||
* | Fixed mistake in test for f-string error description (GH-22036) (GH-22059) | han-solo | 2020-09-02 | 1 | -1/+1 |
| | |||||
* | bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` ↵ | han-solo | 2020-09-01 | 1 | -0/+20 |
| | | | | | | | in format specifier (GH-22036) * Fixed `f-string/str.format` error description when using two `,` in format specifier. Co-authored-by: millefalcon <hanish0019@hmail.com> | ||||
* | bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) | Mark Dickinson | 2020-05-29 | 1 | -0/+11 |
| | | | | | | | | | | | * Fix failure of _Py_dg_dtoa to remove trailing zeros * Add regression test and news entry * Add explanation about why it's safe to strip trailing zeros * Make code safer, clean up comments, add change note at top of file * Nitpick: avoid implicit int-to-float conversion in tests | ||||
* | Fix typos mostly in comments, docs and test names (GH-15209) | Min ho Kim | 2019-08-30 | 1 | -1/+1 |
| | |||||
* | bpo-28856: Let %b format for bytes support objects that follow the buffer ↵ | Xiang Zhang | 2017-03-14 | 1 | -2/+6 |
| | | | | | | protocol (GH-546) | ||||
* | bpo-29568: Disable any characters between two percents for escaped percent ↵ | Serhiy Storchaka | 2017-03-08 | 1 | -41/+36 |
| | | | | "%%" in the format string for classic string formatting. (GH-513) | ||||
* | Issue #29073: Added a test for bytearray formatting with null byte. | Serhiy Storchaka | 2016-12-28 | 1 | -0/+7 |
|\ | |||||
| * | Issue #29073: bytearray formatting no longer truncates on first null byte. | Serhiy Storchaka | 2016-12-28 | 1 | -0/+7 |
| | | |||||
* | | Issue #29000: Fixed bytes formatting of octals with zero padding in alternate | Serhiy Storchaka | 2016-12-17 | 1 | -8/+26 |
|\ \ | |/ | | | | | form. | ||||
| * | Issue #29000: Fixed bytes formatting of octals with zero padding in alternate | Serhiy Storchaka | 2016-12-17 | 1 | -8/+26 |
| | | | | | | | | form. | ||||
* | | Issues #28916, #26483: Merge stdtypes.rst from 3.5 | Martin Panter | 2016-12-11 | 1 | -20/+6 |
|\ \ | |/ | |||||
| * | Issue #28916: Correct description of %o and %x alternative forms | Martin Panter | 2016-12-11 | 1 | -20/+6 |
| | | | | | | | | | | | | | | * In Python 3, the specifier is 0o * There is no special case for leading zeros * Remove duplicate tests * Clarify other existing tests and comments | ||||
* | | Issue #26983: Fixed test_format failure. | Serhiy Storchaka | 2016-06-06 | 1 | -1/+1 |
| | | | | | | | | Patch by SilentGhost. | ||||
* | | Issue #25349: Add fast path for b'%c' % int | Victor Stinner | 2015-10-09 | 1 | -0/+2 |
|/ | | | | Optimize also %% formater. | ||||
* | Issue #23466: Fixed expected error message in test_format. | Serhiy Storchaka | 2015-04-04 | 1 | -1/+1 |
| | |||||
* | Issue #23466: Raised OverflowError if %c argument is out of range. | Serhiy Storchaka | 2015-04-03 | 1 | -6/+6 |
| | |||||
* | Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on | Serhiy Storchaka | 2015-03-30 | 1 | -1/+18 |
| | | | | non-integer input. | ||||
* | Close issue23467: add %r compatibility to bytes and bytearray | Ethan Furman | 2015-03-11 | 1 | -0/+5 |
| | |||||
* | Issue20284: Implement PEP461 | Ethan Furman | 2015-01-24 | 1 | -141/+244 |
| | |||||
* | Issue19995: passing a non-int to %o, %c, %x, or %X now raises an exception | Ethan Furman | 2014-03-19 | 1 | -10/+0 |
| | |||||
* | Issue #20532: Tests which use _testcapi now are marked as CPython only. | Serhiy Storchaka | 2014-02-07 | 1 | -4/+13 |
|\ | |||||
| * | Issue #20532: Tests which use _testcapi now are marked as CPython only. | Serhiy Storchaka | 2014-02-07 | 1 | -6/+16 |
| | | |||||
* | | Catch deprecation warnings emitted when non-integers are formatted with %c, %o | Serhiy Storchaka | 2014-02-06 | 1 | -5/+10 |
| | | | | | | | | and %x (introduced in issue #19995). | ||||
* | | Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %X | Ethan Furman | 2014-01-12 | 1 | -0/+5 |
| | | |||||
* | | Issue19995: %o, %x, %X now only accept ints | Ethan Furman | 2014-01-05 | 1 | -5/+0 |
| | | |||||
* | | Remove failing checks for explicit error messages. | Mark Dickinson | 2013-10-13 | 1 | -2/+0 |
| | | |||||
* | | Issue #18659: fix test_format test that wasn't being executed. Thanks ↵ | Mark Dickinson | 2013-10-13 | 1 | -8/+5 |
| | | | | | | | | Vajrasky Kok for the patch. | ||||
* | | Issue #18659: Backed out changeset cfd875bcbe41 after buildbot failures. | Mark Dickinson | 2013-08-05 | 1 | -3/+7 |
| | | |||||
* | | Issue #18659: fix test_format test that wasn't being executed. Thanks ↵ | Mark Dickinson | 2013-08-05 | 1 | -7/+3 |
| | | | | | | | | Vajrasky Kok for the patch. | ||||
* | | (Merge 3.3) Issue #18137: Detect integer overflow on precision in | Victor Stinner | 2013-06-23 | 1 | -0/+17 |
|\ \ | |/ | | | | | float.__format__() and complex.__format__(). | ||||
| * | Issue #18137: Detect integer overflow on precision in float.__format__() and | Victor Stinner | 2013-06-23 | 1 | -0/+17 |
| | | | | | | | | complex.__format__(). | ||||
* | | Add _PyUnicodeWriter_WriteSubstring() function | Victor Stinner | 2013-04-02 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | Write a function to enable more optimizations: * If the substring is the whole string and overallocation is disabled, just keep a reference to the string, don't copy characters * Avoid a call to the expensive _PyUnicode_FindMaxChar() function when possible | ||||
* | | #17217: merge with 3.3. | Ezio Melotti | 2013-02-23 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | #17217: merge with 3.2. | Ezio Melotti | 2013-02-23 | 1 | -3/+3 |
| |\ | |||||
| | * | #17217: fix UnicodeEncodeErrors errors in test_format by printing ASCII only. | Ezio Melotti | 2013-02-23 | 1 | -3/+3 |
| | | | |||||
* | | | Issue #15609: Optimize str%args for integer argument | Victor Stinner | 2012-10-01 | 1 | -0/+16 |
|/ / | | | | | | | | | | | | | | | | | | | - Use _PyLong_FormatWriter() instead of formatlong() when possible, to avoid a temporary buffer - Enable the fast path when width is smaller or equals to the length, and when the precision is bigger or equals to the length - Add unit tests! - formatlong() uses PyUnicode_Resize() instead of _PyUnicode_FromASCII() to resize the output string | ||||
* | | Fix "%f" format of str%args if the result is not an ASCII or latin1 string | Victor Stinner | 2012-06-16 | 1 | -0/+2 |
| | | |||||
* | | Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL. | Stefan Krah | 2012-02-27 | 1 | -1/+2 |
| | | |||||
* | | Issue #13706: Fix format(float, "n") for locale with non-ASCII decimal point ↵ | Victor Stinner | 2012-02-24 | 1 | -1/+9 |
| | | | | | | | | (e.g. ps_aF) | ||||
* | | Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator | Victor Stinner | 2012-02-23 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | * Decode thousands separator and decimal point using PyUnicode_DecodeLocale() (from the locale encoding), instead of decoding them implicitly from latin1 * Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used * Change _PyUnicode_InsertThousandsGrouping() API to return the maximum character if unicode is NULL * Replace MIN/MAX macros by Py_MIN/Py_MAX * stringlib/undef.h undefines STRINGLIB_IS_UNICODE * stringlib/localeutil.h only supports Unicode | ||||
* | | Issue #13706: Support non-ASCII fill characters | Victor Stinner | 2012-01-21 | 1 | -0/+20 |
|/ | |||||
* | Merged revisions 78372-78373 via svnmerge from | Mark Dickinson | 2010-02-23 | 1 | -10/+13 |
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78372 | mark.dickinson | 2010-02-23 12:53:52 +0000 (Tue, 23 Feb 2010) | 1 line Make global variable overflowok into a keyword argument; this fixes a failure when running ./python -m test.regrtest -R 3:2: test_format ........ r78373 | mark.dickinson | 2010-02-23 13:06:50 +0000 (Tue, 23 Feb 2010) | 1 line Fix spacing nit. Thanks Eric Smith for the public humiliation. ........ | ||||
* | Merged revisions 78082,78086 via svnmerge from | Mark Dickinson | 2010-02-07 | 1 | -10/+6 |
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78082 | mark.dickinson | 2010-02-07 13:01:56 +0000 (Sun, 07 Feb 2010) | 1 line Add missing global declarations for 'overflowok'; remove 'overflowrequired', which is no longer needed. ........ r78086 | mark.dickinson | 2010-02-07 13:09:52 +0000 (Sun, 07 Feb 2010) | 1 line Actually raise on failure, instead of doing nothing. ........ | ||||
* | The other half of Issue #1580: use short float repr where possible. | Eric Smith | 2009-04-16 | 1 | -0/+5 |
| | | | | | | | | | | | | | | Addresses the float -> string conversion, using David Gay's code which was added in Mark Dickinson's checkin r71663. Also addresses these, which are intertwined with the short repr changes: - Issue #5772: format(1e100, '<') produces '1e+100', not '1.0e+100' - Issue #5515: 'n' formatting with commas no longer works poorly with leading zeros. - PEP 378 Format Specifier for Thousands Separator: implemented for floats. | ||||
* | The Unicode database was updated to 5.1, and some characters have become ↵ | Amaury Forgeot d'Arc | 2008-09-10 | 1 | -2/+2 |
| | | | | | | printable. Change the tests and use another code point. | ||||
* | Backed out r65073, pending fixing it in Windows. | Eric Smith | 2008-07-17 | 1 | -11/+0 |
| | |||||
* | Merged revisions 65069 via svnmerge from | Eric Smith | 2008-07-17 | 1 | -0/+11 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65069 | eric.smith | 2008-07-17 13:48:39 -0400 (Thu, 17 Jul 2008) | 1 line Issue 3382: Make '%F' and float.__format__('F') convert results to upper case. ........ | ||||
* | Correct a test after r64701. | Amaury Forgeot d'Arc | 2008-07-04 | 1 | -2/+4 |
| |