Skip to content

[3.12] gh-107298: Document PyMODINIT_FUNC macro (GH-109236) - #109947

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-d7a27e5-3.12
Sep 27, 2023
Merged

Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-d7a27e5-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 27, 2023 •

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit d7a27e5)

Co-authored-by: Victor Stinner vstinner@python.org


📚 Documentation preview 📚: https://cpython-previews--109947.org.readthedocs.build/

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.
(cherry picked from commit d7a27e5)

Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@Yhg1s
Yhg1s merged commit fc4fddb into python:3.12 Sep 27, 2023
@miss-islington
miss-islington deleted the backport-d7a27e5-3.12 branch September 27, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

4 participants