Skip to content

Commit b6c945c

Browse files
committed
Remove explicit C API function
1 parent a6f7d2e commit b6c945c

File tree

9 files changed

+4
-23
lines changed

9 files changed

+4
-23
lines changed

Doc/data/stable_abi.dat

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/Python.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,5 @@
138138
#include "fileutils.h"
139139
#include "cpython/pyfpe.h"
140140
#include "cpython/tracemalloc.h"
141-
#include "pyabiinfo.h"
142141

143142
#endif /* !Py_PYTHON_H */

Include/internal/pycore_abiinfo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
extern "C" {
55
#endif
66

7+
extern PyObject *_PyAbiInfo_GetInfo(void);
78
extern PyStatus _PyAbiInfo_InitTypes(PyInterpreterState *);
89
extern void _PyAbiInfo_FiniTypes(PyInterpreterState *interp);
910

Include/pyabiinfo.h

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

Lib/test/test_stable_abi_ctypes.py

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/stable_abi.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,5 +2583,3 @@
25832583
added = '3.15'
25842584
[function.PySys_GetOptionalAttrString]
25852585
added = '3.15'
2586-
[function.PyAbiInfo_GetInfo]
2587-
added = '3.15'

PC/python3dll.c

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/abiinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static PyStructSequence_Desc abi_info_desc = {
2626
};
2727

2828
PyObject *
29-
PyAbiInfo_GetInfo(void)
29+
_PyAbiInfo_GetInfo(void)
3030
{
3131
PyObject *abi_info, *value;
3232
int pos = 0;

Python/sysmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Data members:
1515
*/
1616

1717
#include "Python.h"
18+
#include "pycore_abiinfo.h" // _PyAbiInfo_GetInfo()
1819
#include "pycore_audit.h" // _Py_AuditHookEntry
1920
#include "pycore_call.h" // _PyObject_CallNoArgs()
2021
#include "pycore_ceval.h" // _PyEval_SetAsyncGenFinalizer()
@@ -3856,7 +3857,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
38563857

38573858
SET_SYS("thread_info", PyThread_GetInfo());
38583859

3859-
SET_SYS("abi_info", PyAbiInfo_GetInfo());
3860+
SET_SYS("abi_info", _PyAbiInfo_GetInfo());
38603861

38613862
/* initialize asyncgen_hooks */
38623863
if (_PyStructSequence_InitBuiltin(interp, &AsyncGenHooksType,

0 commit comments

Comments
 (0)