| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
106320: Remove private float C API functions
Remove private C API functions:
* _Py_parse_inf_or_nan()
* _Py_string_to_number_with_underscores()
Move these functions to the internal C API and no longer export them.
|
|
|
|
|
|
|
|
| |
Add "z" format specifier to coerce negative 0 to zero.
See https://github.com/python/cpython/issues/90153 (originally https://bugs.python.org/issue45995) for discussion.
This covers `str.format()` and f-strings. Old-style string interpolation is not supported.
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
|
|
|
|
| |
Thanks to Georg Brandl for the patch.
|
| |
|
|
|
|
| |
PyOS_ascii_strtod, and PyOS_ascii_atof.
|
|
|
|
| |
pystrtod.c, floatobject.c and dtoa.c.
|
|
|
|
| |
PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Add missing PyAPI_FUNC/PyAPI_DATA macros.
|
|
|