gh-107298: Document doesn't link to PyAPI_DATA()#109236
Conversation
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
Oh! There is still a warning in Doc/whatsnew/2.3.rst: c:macro reference target not found: PyMODINIT_FUNC.
I will fix it.
Sorry, something went wrong.
cbd269f to
553fdd0
Compare
September 11, 2023 20:58
serhiy-storchaka
left a comment
There was a problem hiding this comment.
PyMODINIT_FUNC is purposed to be used in the user code. It is even used in examples.
Sorry, something went wrong.
553fdd0 to
5eba491
Compare
September 11, 2023 21:20
Oh right. I fixed my PR:
Please review it again. @hugovk: I added "the" in the added doc ;-) |
Sorry, something went wrong.
5eba491 to
5847580
Compare
September 11, 2023 21:21
|
@serhiy-storchaka: I completed PyMODINIT_FUNC doc. Would you mind to review my doc change again? |
Sorry, something went wrong.
|
Oops sorry, I tested a Git tool and it messed up my PR :-( I fixed my PR. |
Sorry, something went wrong.
Oh, and thanks @hugovk for the review as well :-) |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
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>
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. (cherry picked from commit d7a27e5)
gh-107298: Document PyMODINIT_FUNC macro (GH-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. (cherry picked from commit d7a27e5) Co-authored-by: Victor Stinner <vstinner@python.org>
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.
Document PyMODINIT_FUNC macro.
📚 Documentation preview 📚: https://cpython-previews--109236.org.readthedocs.build/