Skip to content

bpo-44220: Export PyStructSequence_UnnamedField in C API #26331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Doc/data/stable_abi.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion Include/structseq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:c:var:`PyStructSequence_UnnamedField` is added to the Stable ABI.
2 changes: 2 additions & 0 deletions Misc/stable_abi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
1 change: 1 addition & 0 deletions PC/python3dll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down