Skip to content

Commit 2cd4be1

Browse files
committed
apply suggestion from code review
1 parent fd17cb6 commit 2cd4be1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Doc/extending/extending.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ the module and a copyright notice if you like).
7777
All user-visible symbols defined by :file:`Python.h` have a prefix of ``Py`` or
7878
``PY``, except those defined in standard header files.
7979

80-
Note that :file:`Python.h` excludes ``<stdio.h>``, ``<string.h>``,
81-
``<errno.h>``, and ``<stdlib.h>`` as they are not used by Python anymore.
82-
For backward compatibility of existing third party C extensions, they will be
83-
included if Py_LIMITED_API is not defined and for limited C API version 3.10
84-
and older.
80+
For backward compatibility of existing third party C extensions, :file:`Python.h`
81+
includes ``<stdio.h>``, ``<string.h>``, ``<errno.h>``, and ``<stdlib.h>`` if
82+
:c:macro:`Py_LIMITED_API` is not defined or for limited C API version 3.10 and older.
8583
The ``<ctype.h>`` and ``<unistd.h>`` headers are also not included for limited
8684
C API version 3.13 and newer.
8785

0 commit comments

Comments
 (0)