mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
gh-118915: Document PyUnstable_InterpreterState_GetMainModule (GH-128483)
This commit is contained in:
parent
4322a318ea
commit
ea39c8b08d
1 changed files with 11 additions and 0 deletions
|
|
@ -1492,6 +1492,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