Issue #5988: Delete deprecated functions PyOS_ascii_formatd, PyOS_asc… · pythoncapi/cpython@68af50b · GitHub
Skip to content

Commit 68af50b

Browse files
committed
Issue python#5988: Delete deprecated functions PyOS_ascii_formatd, PyOS_ascii_strtod, and PyOS_ascii_atof.
1 parent 9d2d327 commit 68af50b

6 files changed

Lines changed: 17 additions & 171 deletions

File tree

Doc/c-api/conversion.rst

Lines changed: 0 additions & 39 deletions

Include/pystrtod.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ extern "C" {
66
#endif
77

88

9-
PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);
10-
PyAPI_FUNC(double) PyOS_ascii_atof(const char *str);
11-
PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, size_t buf_len, const char *format, double d);
129
PyAPI_FUNC(double) PyOS_string_to_double(const char *str,
1310
char **endptr,
1411
PyObject *overflow_exception);

Lib/test/test_ascii_formatd.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ What's New in Python 3.2 Alpha 1?
1212
Core and Builtins
1313
-----------------
1414

15+
- Issue #5988: Remove deprecated functions PyOS_ascii_formatd,
16+
PyOS_ascii_strtod, and PyOS_ascii_atof. Use PyOS_double_to_string
17+
and PyOS_string_to_double instead. See issue #5835 for the original
18+
deprecations.
19+
1520
- Issue #7385: Fix a crash in `MemoryView_FromObject` when
1621
`PyObject_GetBuffer` fails. Patch by Florent Xicluna.
1722

PC/os2emx/python27.def

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,11 +1048,6 @@ EXPORTS
10481048
"_PyThreadState_Current"
10491049
"_PyThreadState_GetFrame"
10501050

1051-
; From python26_s.lib(pystrtod)
1052-
"PyOS_ascii_strtod"
1053-
"PyOS_ascii_formatd"
1054-
"PyOS_ascii_atof"
1055-
10561051
; From python26_s.lib(pythonrun)
10571052
"Py_IgnoreEnvironmentFlag"
10581053
"Py_DebugFlag"

Python/pystrtod.c

Lines changed: 12 additions & 63 deletions

0 commit comments

Comments
 (0)