Skip to content

Commit 0a59d09

Browse files
committed
Add functons to the limited C API
1 parent afaa0f3 commit 0a59d09

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

Doc/data/stable_abi.dat

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/listobject.h

+3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
3535

3636
PyAPI_FUNC(PyObject *) PyList_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
3737
PyAPI_FUNC(int) PyList_SetSlice(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
38+
39+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000
3840
PyAPI_FUNC(int) PyList_Extend(PyObject *self, PyObject *iterable);
3941
PyAPI_FUNC(int) PyList_Clear(PyObject *self);
42+
#endif
4043

4144
PyAPI_FUNC(int) PyList_Sort(PyObject *);
4245
PyAPI_FUNC(int) PyList_Reverse(PyObject *);

Lib/test/test_stable_abi_ctypes.py

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/stable_abi.toml

+4
Original file line numberDiff line numberDiff line change
@@ -2481,3 +2481,7 @@
24812481
[function._Py_SetRefcnt]
24822482
added = '3.13'
24832483
abi_only = true
2484+
[function.PyList_Clear]
2485+
added = '3.13'
2486+
[function.PyList_Extend]
2487+
added = '3.13'

PC/python3dll.c

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)