summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2022-11-02-16-51-24.gh-issue-47146.dsYDtI.rst5
-rw-r--r--Misc/stable_abi.toml49
2 files changed, 49 insertions, 5 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-11-02-16-51-24.gh-issue-47146.dsYDtI.rst b/Misc/NEWS.d/next/C API/2022-11-02-16-51-24.gh-issue-47146.dsYDtI.rst
new file mode 100644
index 0000000..0f41942
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2022-11-02-16-51-24.gh-issue-47146.dsYDtI.rst
@@ -0,0 +1,5 @@
+The ``structmember.h`` header is deprecated. Its non-deprecated contents are
+now available just by including ``Python.h``, with a ``Py_`` prefix added if
+it was missing. (Deprecated contents are :c:macro:`T_OBJECT`,
+:c:macro:`T_NONE`, and no-op flags.) Patch by Petr Viktorin, based on
+earlier work by Alexander Belopolsky and Matthias Braun.
diff --git a/Misc/stable_abi.toml b/Misc/stable_abi.toml
index 0ba0f51..aa12bcc 100644
--- a/Misc/stable_abi.toml
+++ b/Misc/stable_abi.toml
@@ -94,7 +94,7 @@
added = '3.2'
struct_abi_kind = 'full-abi'
[struct.PyMemberDef]
- added = '3.2'
+ added = '3.2' # Before 3.12, PyMemberDef required #include "structmember.h"
struct_abi_kind = 'full-abi'
[struct.PyGetSetDef]
added = '3.2'
@@ -1777,11 +1777,9 @@
added = '3.2'
abi_only = true
[function.PyMember_GetOne]
- added = '3.2'
- abi_only = true
+ added = '3.2' # Before 3.12, available in "structmember.h"
[function.PyMember_SetOne]
- added = '3.2'
- abi_only = true
+ added = '3.2' # Before 3.12, available in "structmember.h"
# TLS api is deprecated; superseded by TSS API
@@ -2303,3 +2301,44 @@
added = '3.12'
[typedef.releasebufferproc]
added = '3.12'
+
+[const.Py_T_BYTE]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_SHORT]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_INT]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_LONG]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_LONGLONG]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_UBYTE]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_UINT]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_USHORT]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_ULONG]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_ULONGLONG]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_PYSSIZET]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_FLOAT]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_DOUBLE]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_BOOL]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_STRING]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_STRING_INPLACE]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_CHAR]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_T_OBJECT_EX]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_READONLY]
+ added = '3.12' # Before 3.12, available in "structmember.h" w/o Py_ prefix
+[const.Py_AUDIT_READ]
+ added = '3.12' # Before 3.12, available in "structmember.h"