bpo-44220: Export PyStructSequence_UnnamedField in the limited API (GH-26331)

This commit is contained in:
Ken Jin 2021-10-21 16:46:48 +08:00 committed by GitHub
parent 7c4d96103c
commit 2cbf50e812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 1 deletions

View File

@ -569,6 +569,7 @@ function,PyStructSequence_GetItem,3.2,
function,PyStructSequence_New,3.2,
function,PyStructSequence_NewType,3.2,
function,PyStructSequence_SetItem,3.2,
var,PyStructSequence_UnnamedField,3.11,
var,PySuper_Type,3.2,
function,PySys_AddWarnOption,3.2,
function,PySys_AddWarnOptionUnicode,3.2,

View File

@ -19,7 +19,7 @@ typedef struct PyStructSequence_Desc {
int n_in_sequence;
} PyStructSequence_Desc;
extern const char * const PyStructSequence_UnnamedField;
PyAPI_DATA(const char * const) PyStructSequence_UnnamedField;
#ifndef Py_LIMITED_API
PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,

View File

@ -0,0 +1 @@
:c:var:`PyStructSequence_UnnamedField` is added to the Stable ABI.

View File

@ -2149,6 +2149,8 @@ function PyType_GetName
added 3.11
function PyType_GetQualName
added 3.11
data PyStructSequence_UnnamedField
added 3.11
# (Detailed comments aren't really needed for further entries: from here on
# we can use version control logs.)

View File

@ -842,6 +842,7 @@ EXPORT_DATA(PySeqIter_Type)
EXPORT_DATA(PySet_Type)
EXPORT_DATA(PySetIter_Type)
EXPORT_DATA(PySlice_Type)
EXPORT_DATA(PyStructSequence_UnnamedField)
EXPORT_DATA(PySuper_Type)
EXPORT_DATA(PyTraceBack_Type)
EXPORT_DATA(PyTuple_Type)