diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-14 12:56:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 12:56:43 (GMT) |
commit | d7a27e527d7e669d2e45cff80ad725978226477c (patch) | |
tree | ff416243277a6d4fb5117bf53f350bf26f1468ab /Doc/whatsnew/2.3.rst | |
parent | 1f885df2a580360c5de69cc41191f3c6bfaaeb35 (diff) | |
download | cpython-d7a27e527d7e669d2e45cff80ad725978226477c.zip cpython-d7a27e527d7e669d2e45cff80ad725978226477c.tar.gz cpython-d7a27e527d7e669d2e45cff80ad725978226477c.tar.bz2 |
gh-107298: Document PyMODINIT_FUNC macro (#109236)
Document PyMODINIT_FUNC macro.
Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are
not documented. These macros should only be used to define the Python
C API. They should not be used outside Python code base.
Diffstat (limited to 'Doc/whatsnew/2.3.rst')
-rw-r--r-- | Doc/whatsnew/2.3.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.3.rst b/Doc/whatsnew/2.3.rst index ba18ce3..ec1ca41 100644 --- a/Doc/whatsnew/2.3.rst +++ b/Doc/whatsnew/2.3.rst @@ -1889,7 +1889,7 @@ Changes to Python's build process and to the C API include: * The :c:macro:`!DL_EXPORT` and :c:macro:`!DL_IMPORT` macros are now deprecated. Initialization functions for Python extension modules should now be declared using the new macro :c:macro:`PyMODINIT_FUNC`, while the Python core will - generally use the :c:macro:`PyAPI_FUNC` and :c:macro:`PyAPI_DATA` macros. + generally use the :c:macro:`!PyAPI_FUNC` and :c:macro:`!PyAPI_DATA` macros. * The interpreter can be compiled without any docstrings for the built-in functions and modules by supplying :option:`!--without-doc-strings` to the |