Skip to content

Commit

Permalink
[3.13] gh-118915: Document PyUnstable_InterpreterState_GetMainModule (
Browse files Browse the repository at this point in the history
GH-128483) (GH-128677)

(cherry picked from commit ea39c8b)

Co-authored-by: Peter Bierma <[email protected]>
  • Loading branch information
miss-islington and ZeroIntensity authored Jan 10, 2025
1 parent 5370ad1 commit 65da5db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,17 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
.. versionadded:: 3.8
.. c:function:: PyObject* PyUnstable_InterpreterState_GetMainModule(PyInterpreterState *interp)
Return a :term:`strong reference` to the ``__main__`` `module object <moduleobjects>`_
for the given interpreter.
The caller must hold the GIL.
.. versionadded:: 3.13
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
Type of a frame evaluation function.
Expand Down

0 comments on commit 65da5db

Please sign in to comment.