@@ -2820,7 +2820,7 @@ CPython bytecode changes
28202820 (Contributed by Irit Katriel in :gh: `100239 `.)
28212821
28222822
2823- C API Changes
2823+ C API changes
28242824=============
28252825
28262826New features in the C API
@@ -2847,7 +2847,7 @@ New features in the C API
28472847
28482848 (Contributed by Victor Stinner in :gh: `107954 `.)
28492849
2850- * Add functions to configure Python initialization ( :pep: ` 741 `)
2850+ * Add functions to configure Python initialization
28512851 (:ref: `PEP 741: Python configuration C API <whatsnew314-pep741 >`):
28522852
28532853 * :c:func: `Py_InitializeFromInitConfig `
@@ -2869,7 +2869,7 @@ New features in the C API
28692869
28702870* Add :c:func: `Py_fopen ` function to open a file.
28712871 This works similarly to the standard C :c:func: `!fopen ` function,
2872- accepting a Python object for the *path * parameter
2872+ instead accepting a Python object for the *path * parameter
28732873 and setting an exception on error.
28742874 The corresponding new :c:func: `Py_fclose ` function should be used
28752875 to close a file.
@@ -2888,12 +2888,12 @@ New features in the C API
28882888 (Contributed by Irit Katriel and Erlend Aasland in :gh: `105201 `.)
28892889
28902890* Add :c:func: `PyLong_GetSign ` function to get the sign of :class: `int ` objects.
2891- (Contributed by Sergey B. Kirpichev in :gh: `116560 `.)
2891+ (Contributed by Sergey B Kirpichev in :gh: `116560 `.)
28922892
28932893* Add :c:func: `PyLong_IsPositive `, :c:func: `PyLong_IsNegative `
28942894 and :c:func: `PyLong_IsZero ` for checking if :c:type: `PyLongObject `
28952895 is positive, negative, or zero, respectively.
2896- (Contributed by James Roy and Sergey B. Kirpichev in :gh: `126061 `.)
2896+ (Contributed by James Roy and Sergey B Kirpichev in :gh: `126061 `.)
28972897
28982898* Add new functions to convert C ``<stdint.h> `` numbers to/from
28992899 Python :class: `int ` objects:
@@ -2919,7 +2919,7 @@ New features in the C API
29192919 * :c:func: `PyLongWriter_Finish `
29202920 * :c:func: `PyLongWriter_Discard `
29212921
2922- (Contributed by Sergey B. Kirpichev and Victor Stinner in :gh: `102471 `.)
2922+ (Contributed by Sergey B Kirpichev and Victor Stinner in :gh: `102471 `.)
29232923
29242924* Add :c:func: `PyMonitoring_FireBranchLeftEvent ` and
29252925 :c:func: `PyMonitoring_FireBranchRightEvent ` for generating
@@ -2932,9 +2932,14 @@ New features in the C API
29322932
29332933* Add :c:func: `PyType_GetBaseByToken ` and :c:data: `Py_tp_token ` slot
29342934 for easier superclass identification, which attempts to resolve the
2935- type checking issue mentioned in :pep: `630 <630#type-checking >`.
2935+ type checking issue mentioned in :pep: `PEP 630 <630#type-checking >`.
29362936 (Contributed in :gh: `124153 `.)
29372937
2938+ * Add a new :c:func: `PyUnicode_Equal ` function to test if two
2939+ strings are equal.
2940+ The function is also added to the Limited C API.
2941+ (Contributed by Victor Stinner in :gh: `124502 `.)
2942+
29382943* Add a new :c:type: `PyUnicodeWriter ` API to create a Python :class: `str `
29392944 object, with the following functions:
29402945
@@ -2987,10 +2992,6 @@ New features in the C API
29872992Limited C API changes
29882993---------------------
29892994
2990- * Add :c:func: `PyUnicode_Equal ` function to the limited C API:
2991- test if two strings are equal.
2992- (Contributed by Victor Stinner in :gh: `124502 `.)
2993-
29942995* In the limited C API version 3.14 and newer, :c:func: `Py_TYPE ` and
29952996 :c:func: `Py_REFCNT ` are now implemented as an opaque function call
29962997 to hide implementation details.
@@ -3038,13 +3039,13 @@ Deprecated C APIs
30383039
30393040* The :c:macro: `!Py_HUGE_VAL ` macro is now :term: `soft deprecated `.
30403041 Use :c:macro: `!Py_INFINITY ` instead.
3041- (Contributed by Sergey B. Kirpichev in :gh: `120026 `.)
3042+ (Contributed by Sergey B Kirpichev in :gh: `120026 `.)
30423043
30433044* The :c:macro: `!Py_IS_NAN `, :c:macro: `!Py_IS_INFINITY `,
30443045 and :c:macro: `!Py_IS_FINITE ` macros are now :term: `soft deprecated `.
30453046 Use :c:macro: `!isnan `, :c:macro: `!isinf ` and :c:macro: `!isfinite `
30463047 instead, available from :file: `math.h ` since C99.
3047- (Contributed by Sergey B. Kirpichev in :gh: `119613 `.)
3048+ (Contributed by Sergey B Kirpichev in :gh: `119613 `.)
30483049
30493050* Non-tuple sequences are now deprecated as argument for the ``(items) ``
30503051 format unit in :c:func: `PyArg_ParseTuple ` and other :ref: `argument
0 commit comments