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

Commitc3d580b

Browse files
authored
gh-106320: Remove private _PyList functions (#108451)
Move private functions to the internal C API (pycore_list.h):* _PyList_Extend()* _PyList_DebugMallocStats()No longer export these functions.
1 parent88941d6 commitc3d580b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎Include/cpython/listobject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ typedef struct {
2121
Py_ssize_tallocated;
2222
}PyListObject;
2323

24-
PyAPI_FUNC(PyObject*)_PyList_Extend(PyListObject*,PyObject*);
25-
PyAPI_FUNC(void)_PyList_DebugMallocStats(FILE*out);
26-
2724
/* Cast argument to PyListObject* type. */
2825
#define_PyList_CAST(op) \
2926
(assert(PyList_Check(op)), _Py_CAST(PyListObject*, (op)))

‎Include/internal/pycore_list.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
#include"listobject.h"// _PyList_CAST()
11+
12+
externPyObject*_PyList_Extend(PyListObject*,PyObject*);
13+
externvoid_PyList_DebugMallocStats(FILE*out);
1214

1315

1416
/* runtime lifecycle */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp