-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-118915: Document PyUnstable_InterpreterState_GetMainModule
#128483
Conversation
Thanks @ZeroIntensity for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks! |
…pythonGH-128483) (cherry picked from commit ea39c8b) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
GH-128677 is a backport of this pull request to the 3.13 branch. |
|
||
.. c:function:: PyObject* PyUnstable_InterpreterState_GetMainModule(PyInterpreterState *interp) | ||
|
||
Return a :term:`strong reference` to the ``__main__`` `module object <moduleobjects>`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The moduleobjects
link leads nowhere.
On https://docs.python.org/3.13/c-api/init.html#c.PyUnstable_InterpreterState_GetMainModule the link goes to https://docs.python.org/3.13/c-api/moduleobjects which gives error 404.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📚 Documentation preview 📚: https://cpython-previews--128483.org.readthedocs.build/en/128483/c-api/init.html#c.PyUnstable_InterpreterState_GetMainModule