Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in ↵ | Eric Smith | 2008-06-24 | 1 | -1/+1 |
| | | | | anticipation of fixing issue 3140. | ||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -1/+1 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -1/+1 |
| | |||||
* | Addresses issue 2802: 'n' formatting for integers. | Eric Smith | 2008-05-11 | 1 | -45/+4 |
| | | | | | | | | | | | | | | Adds 'n' as a format specifier for integers, to mirror the same specifier which is already available for floats. 'n' is the same as 'd', but inserts the current locale-specific thousands grouping. I added this as a stringlib function, but it's only used by str type, not unicode. This is because of an implementation detail in unicode.format(), which does its own str->unicode conversion. But the unicode version will be needed in 3.0, and it may be needed by other code eventually in 2.6 (maybe decimal?), so I left it as a stringlib implementation. As long as the unicode version isn't instantiated, there's no overhead for this. | ||||
* | Issue 2526, float.__format__ 'n' specifier does not support thousands grouping. | Eric Smith | 2008-04-30 | 1 | -128/+229 |
| | | | | | Implemented grouping, with tests. Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions. | ||||
* | Reformated lines > 79 chars. | Eric Smith | 2008-03-17 | 1 | -8/+12 |
| | | | | Deleted unused macro ISXDIGIT. | ||||
* | Issue 2264: empty float presentation type needs to have at least one digit ↵ | Eric Smith | 2008-03-17 | 1 | -17/+61 |
| | | | | | | | | | past the decimal point. Added "Z" format_char to PyOS_ascii_formatd to support empty float presentation type. Renamed buf_size in PyOS_ascii_formatd to more accurately reflect it's meaning. Modified format.__float__ to use the new "Z" format as the default. Added test cases. | ||||
* | Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵ | Eric Smith | 2008-02-20 | 1 | -27/+127 |
| | | | | As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). | ||||
* | Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000 | Guido van Rossum | 2008-01-05 | 1 | -22/+52 |
| | | | | and adds errors for -0x. | ||||
* | Bug #1417699: Reject locale-specific decimal point in float() | Martin v. Löwis | 2006-07-03 | 1 | -0/+7 |
| | | | | and atof(). | ||||
* | Fix compiler warning. | Georg Brandl | 2006-05-29 | 1 | -1/+1 |
| | |||||
* | Handle PyMem_Malloc failure in pystrtod.c. Closes #1494671. | Georg Brandl | 2006-05-29 | 1 | -0/+7 |
| | |||||
* | Swap out bare malloc()/free() use for PyMem_MALLOC()/PyMem_FREE() . | Brett Cannon | 2006-05-25 | 1 | -2/+2 |
| | |||||
* | Some more changes to make code compile under a C++ compiler. | Anthony Baxter | 2006-04-11 | 1 | -1/+1 |
| | |||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 1 | -1/+1 |
| | |||||
* | Fix icc warnings: strlen() returns size_t | Neal Norwitz | 2006-01-08 | 1 | -3/+2 |
| | |||||
* | Fix compiler warnings | Neal Norwitz | 2005-12-18 | 1 | -2/+2 |
| | |||||
* | Get float() to be more portable across platforms. Disable hex strings. | Neal Norwitz | 2005-12-18 | 1 | -48/+25 |
| | |||||
* | Patch #774665: Make Python LC_NUMERIC agnostic. | Martin v. Löwis | 2004-06-08 | 1 | -0/+258 |