@@ -671,9 +671,9 @@ Other language changes
671671 (Contributed by James Hilton-Balfe in :gh: `128335 `.)
672672
673673* The class :class: `memoryview ` now supports the :c:expr: `float complex ` and
674- :c:expr: `double complex ` C types: formatting characters ``'F' `` and ``'D ' ``
675- respectively.
676- (Contributed by Sergey B Kirpichev in :gh: `146151 `.)
674+ :c:expr: `double complex ` C types: formatting characters ``'F' ``/ ``'Zf ' ``
675+ and `` 'D' ``/`` 'Zd' `` respectively.
676+ (Contributed by Victor Stinner in :gh: `146151 ` and :gh: ` 148675 `.)
677677
678678* Allow the *count * argument of :meth: `bytes.replace ` to be a keyword.
679679 (Contributed by Stan Ulbrych in :gh: `147856 `.)
@@ -724,13 +724,17 @@ array
724724-----
725725
726726* Support the :c:expr: `float complex ` and :c:expr: `double complex ` C types:
727- formatting characters ``'F' `` and ``'D' `` respectively.
728- (Contributed by Sergey B Kirpichev in :gh: `146151 `.)
727+ formatting characters ``'F' ``/`` 'Zf' `` and ``'D' ``/`` 'Zd ' `` respectively.
728+ (Contributed by Victor Stinner in :gh: `146151 ` and :gh: ` 148675 `.)
729729
730730* Support half-floats (16-bit IEEE 754 binary interchange format): formatting
731731 character ``'e' ``.
732732 (Contributed by Sergey B Kirpichev in :gh: `146238 `.)
733733
734+ * The :data: `array.typecodes ` type changed from :class: `str ` to :class: `tuple `
735+ to support type codes longer than 1 character (``Zf `` and ``Zd ``).
736+ (Contributed by Victor Stinner in :gh: `148675 `.)
737+
734738
735739ast
736740---
@@ -1741,6 +1745,12 @@ ctypes
17411745 which has been deprecated since Python 3.13.
17421746 (Contributed by Bénédikt Tran in :gh: `133866 `.)
17431747
1748+ * Change the :py:attr: `~ctypes._SimpleCData._type_ ` of
1749+ :class: `~ctypes.c_float_complex `, :class: `~ctypes.c_double_complex ` and
1750+ :class: `~ctypes.c_longdouble_complex ` from ``F ``, ``D `` and ``G `` to ``Zf ``,
1751+ ``Zd `` and ``Zg `` for compatibility with numpy.
1752+ (Contributed by Victor Stinner in :gh: `148675 `.)
1753+
17441754
17451755datetime
17461756--------
@@ -2050,6 +2060,10 @@ New features
20502060
20512061 (Contributed by Victor Stinner in :gh: `141510 `.)
20522062
2063+ * Add :c:func: `PyObject_CallFinalizerFromDealloc ` function to the limited C
2064+ API.
2065+ (Contributed by Victor Stinner in :gh: `146063 `.)
2066+
20532067* Add :c:func: `PySys_GetAttr `, :c:func: `PySys_GetAttrString `,
20542068 :c:func: `PySys_GetOptionalAttr `, and :c:func: `PySys_GetOptionalAttrString `
20552069 functions as replacements for :c:func: `PySys_GetObject `.
0 commit comments