File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1895,6 +1895,17 @@ New Features
1895
1895
Porting to Python 3.11
1896
1896
----------------------
1897
1897
1898
+ * Some macros have been converted to static inline functions to avoid
1899
+ `macro pitfalls <https://gcc.gnu.org/onlinedocs/cpp/Macro-Pitfalls.html >`_.
1900
+ The change should be mostly transparent to users,
1901
+ as the replacement functions will cast their arguments to the expected types
1902
+ to avoid compiler warnings due to static type checks.
1903
+ However, when the limited C API is set to >=3.11,
1904
+ these casts are not done,
1905
+ and callers will need to cast arguments to their expected types.
1906
+ See :pep: `670 ` for more details.
1907
+ (Contributed by Victor Stinner and Erlend E. Aasland in :gh: `89653 `.)
1908
+
1898
1909
* :c:func: `PyErr_SetExcInfo() ` no longer uses the ``type `` and ``traceback ``
1899
1910
arguments, the interpreter now derives those values from the exception
1900
1911
instance (the ``value `` argument). The function still steals references
You can’t perform that action at this time.
0 commit comments