summaryrefslogtreecommitdiffstats
path: root/Include/pystrtod.h
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45995: add "z" format specifer to coerce negative 0 to zero (GH-30049)John Belmonte2022-04-111-0/+1
| | | | | | | | 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>
* Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-0/+4
| | | | Thanks to Georg Brandl for the patch.
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-0/+2
|
* Issue #5988: Delete deprecated functions PyOS_ascii_formatd, ↵Eric Smith2010-02-221-3/+0
| | | | PyOS_ascii_strtod, and PyOS_ascii_atof.
* Refactor to remove duplicated nan/inf parsing code inMark Dickinson2009-05-201-0/+2
| | | | pystrtod.c, floatobject.c and dtoa.c.
* Issue #5914: Add new C-API function PyOS_string_to_double, to complementMark Dickinson2009-05-031-0/+3
| | | | PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
* The other half of Issue #1580: use short float repr where possible.Eric Smith2009-04-161-0/+19
| | | | | | | | | | | | | | 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.
* Merge ssize_t branch.Martin v. Löwis2006-02-151-1/+1
|
* Patch #1006003: Cygwin standard module build problemsJason Tishler2004-08-091-3/+3
| | | | Add missing PyAPI_FUNC/PyAPI_DATA macros.
* Patch #774665: Make Python LC_NUMERIC agnostic.Martin v. Löwis2004-06-081-0/+18