summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-15 15:59:32 (GMT)
committerGitHub <noreply@github.com>2023-11-15 15:59:32 (GMT)
commitb338ffa4bc078fd363e8b0078eef4e0d6a071546 (patch)
tree6a8f88cfbc694dddf9d3e97d19b397b254da7b9b /Doc
parent4bbb367ba65e1df7307f7c6a33afd3c369592188 (diff)
downloadcpython-b338ffa4bc078fd363e8b0078eef4e0d6a071546.zip
cpython-b338ffa4bc078fd363e8b0078eef4e0d6a071546.tar.gz
cpython-b338ffa4bc078fd363e8b0078eef4e0d6a071546.tar.bz2
gh-112026: Add again <unistd.h> include in Python.h (#112046)
Add again <ctype.h> and <unistd.h> includes in Python.h, but don't include them in the limited C API version 3.13 and newer.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.13.rst18
1 files changed, 0 insertions, 18 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 136fe90..b64cfc5 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -1191,17 +1191,6 @@ Porting to Python 3.13
also the ``HAVE_IEEEFP_H`` macro.
(Contributed by Victor Stinner in :gh:`108765`.)
-* ``Python.h`` no longer includes the ``<unistd.h>`` standard header file. If
- needed, it should now be included explicitly. For example, it provides the
- functions: ``read()``, ``write()``, ``close()``, ``isatty()``, ``lseek()``,
- ``getpid()``, ``getcwd()``, ``sysconf()``, ``getpagesize()``, ``alarm()`` and
- ``pause()``.
- As a consequence, ``_POSIX_SEMAPHORES`` and ``_POSIX_THREADS`` macros are no
- longer defined by ``Python.h``. The ``HAVE_UNISTD_H`` and ``HAVE_PTHREAD_H``
- macros defined by ``Python.h`` can be used to decide if ``<unistd.h>`` and
- ``<pthread.h>`` header files can be included.
- (Contributed by Victor Stinner in :gh:`108765`.)
-
* ``Python.h`` no longer includes these standard header files: ``<time.h>``,
``<sys/select.h>`` and ``<sys/time.h>``. If needed, they should now be
included explicitly. For example, ``<time.h>`` provides the ``clock()`` and
@@ -1210,13 +1199,6 @@ Porting to Python 3.13
and ``setitimer()`` functions.
(Contributed by Victor Stinner in :gh:`108765`.)
-* ``Python.h`` no longer includes the ``<ctype.h>`` standard header file. If
- needed, it should now be included explicitly. For example, it provides
- ``isalpha()`` and ``tolower()`` functions which are locale dependent. Python
- provides locale independent functions, like :c:func:`!Py_ISALPHA` and
- :c:func:`!Py_TOLOWER`.
- (Contributed by Victor Stinner in :gh:`108765`.)
-
* If the :c:macro:`Py_LIMITED_API` macro is defined, :c:macro:`!Py_BUILD_CORE`,
:c:macro:`!Py_BUILD_CORE_BUILTIN` and :c:macro:`!Py_BUILD_CORE_MODULE` macros
are now undefined by ``<Python.h>``.