From 1e57a6c4a344a6e794a535f722e41ca5894f44f9 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 21 Jan 2025 11:41:14 +0100 Subject: [PATCH 1/2] gh-61103: Add What's New entry for complex types in ctypes --- Doc/whatsnew/3.14.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 0dcecd4944f2f6..467fc5017561cb 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -351,6 +351,12 @@ ctypes callback functions that are passed dynamically-sized buffers. (Contributed by Rian Hunter in :gh:`112018`.) +* Complex types, :class:`~ctypes.c_float_complex`, + :class:`~ctypes.c_double_complex` and :class:`~ctypes.c_longdouble_complex`, + are now available if both the compiler the ``libffi`` library support + complex C types. + (Contributed by Sergey B Kirpichev in :gh:`61103`). + datetime -------- From 8e35607c639150ebfc4860afb0b92514a2b9e537 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 22 Jan 2025 10:49:00 +0100 Subject: [PATCH 2/2] Update Doc/whatsnew/3.14.rst Co-authored-by: Sergey B Kirpichev --- Doc/whatsnew/3.14.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 467fc5017561cb..5652a63ce8d701 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -353,7 +353,7 @@ ctypes * Complex types, :class:`~ctypes.c_float_complex`, :class:`~ctypes.c_double_complex` and :class:`~ctypes.c_longdouble_complex`, - are now available if both the compiler the ``libffi`` library support + are now available if both the compiler and the ``libffi`` library support complex C types. (Contributed by Sergey B Kirpichev in :gh:`61103`).