Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbbe1fa

Browse files
authored
gh-106320: Remove private float C API functions (#108430)
106320: Remove private float C API functionsRemove 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.
1 parent773b803 commitbbbe1fa

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

‎Include/internal/pycore_floatobject.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ extern int _PyFloat_FormatAdvancedWriter(
6767
Py_ssize_tstart,
6868
Py_ssize_tend);
6969

70+
externPyObject*_Py_string_to_number_with_underscores(
71+
constchar*str,Py_ssize_tlen,constchar*what,PyObject*obj,void*arg,
72+
PyObject*(*innerfunc)(constchar*,Py_ssize_t,void*));
73+
74+
externdouble_Py_parse_inf_or_nan(constchar*p,char**endptr);
75+
76+
7077
#ifdef__cplusplus
7178
}
7279
#endif

‎Include/pystrtod.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ PyAPI_FUNC(char *) PyOS_double_to_string(double val,
1818
intflags,
1919
int*type);
2020

21-
#ifndefPy_LIMITED_API
22-
PyAPI_FUNC(PyObject*)_Py_string_to_number_with_underscores(
23-
constchar*str,Py_ssize_tlen,constchar*what,PyObject*obj,void*arg,
24-
PyObject*(*innerfunc)(constchar*,Py_ssize_t,void*));
25-
26-
PyAPI_FUNC(double)_Py_parse_inf_or_nan(constchar*p,char**endptr);
27-
#endif
28-
29-
3021
/* PyOS_double_to_string's "flags" parameter can be set to 0 or more of: */
3122
#definePy_DTSF_SIGN 0x01/* always add the sign */
3223
#definePy_DTSF_ADD_DOT_0 0x02/* if the result is an integer add ".0" */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp