summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-14 23:09:06 (GMT)
committerGitHub <noreply@github.com>2021-10-14 23:09:06 (GMT)
commit284994762d820d8e09cc019f8f7c4bc501e37dd4 (patch)
tree0ccb6119fb1f2e0b50b1dc9a9b7b75ff71272020 /Doc
parentaf1083e975b9627a5c97013d3a2b9aef0e4b333c (diff)
downloadcpython-284994762d820d8e09cc019f8f7c4bc501e37dd4.zip
cpython-284994762d820d8e09cc019f8f7c4bc501e37dd4.tar.gz
cpython-284994762d820d8e09cc019f8f7c4bc501e37dd4.tar.bz2
bpo-45434: Limited Python.h no longer includes stdio.h (GH-28960)
The <Python.h> header file no longer includes <stdio.h> if the Py_LIMITED_API macro is defined.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.11.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index e8d64a8..a6e30c7 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -565,6 +565,13 @@ Porting to Python 3.11
``exit()`` and ``abort()``.
(Contributed by Victor Stinner in :issue:`45434`.)
+* The ``<Python.h>`` header file no longer includes ``<stdio.h>`` if the
+ ``Py_LIMITED_API`` macro is defined. Functions expecting ``FILE*`` are
+ excluded from the limited C API (:pep:`384`). C extensions using
+ ``<stdio.h>`` must now include it explicitly. The system ``<stdio.h>``
+ header provides functions like ``printf()`` and ``fopen()``.
+ (Contributed by Victor Stinner in :issue:`45434`.)
+
Deprecated
----------