mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.13] gh-118915: Document PyUnstable_InterpreterState_GetMainModule
(GH-128483) (GH-128677)
(cherry picked from commit ea39c8b08d
)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
5370ad100d
commit
65da5db28a
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue