From: Victor Stinner Date: Mon, 11 Oct 2021 21:30:00 +0000 (+0200) Subject: bpo-45434: Python.h no longer includes (GH-28888) X-Git-Tag: v3.11.0a2~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ea862b8a8234176761240ba122254e9eb11663;p=thirdparty%2FPython%2Fcpython.git bpo-45434: Python.h no longer includes (GH-28888) --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 2262d42a99ad..1455a598e1b3 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -552,6 +552,10 @@ Porting to Python 3.11 (Contributed by Victor Stinner in :issue:`39573`.) +* The ```` header file no longer includes ````. C + extensions using ```` must now include it explicitly. + (Contributed by Victor Stinner in :issue:`45434`.) + Deprecated ---------- diff --git a/Include/Python.h b/Include/Python.h index fa77521d46eb..8c84c90f9a57 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -25,7 +25,6 @@ #ifdef HAVE_ERRNO_H # include // errno #endif -#include #ifndef MS_WINDOWS # include #endif diff --git a/Misc/NEWS.d/next/C API/2021-10-11-23-03-49.bpo-45434.tsS8I_.rst b/Misc/NEWS.d/next/C API/2021-10-11-23-03-49.bpo-45434.tsS8I_.rst new file mode 100644 index 000000000000..c04dda532557 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2021-10-11-23-03-49.bpo-45434.tsS8I_.rst @@ -0,0 +1,3 @@ +The ```` header file no longer includes ````. C +extensions using ```` must now include it explicitly. Patch by +Victor Stinner.