Skip to content

Commit 35fc38e

Browse files
bpo-36157:Document PyInterpreterState_Main() (GH-12238)
I have added documentation for `PyInterpreterState_Main()`. I chose to place it under Advanced Debugger Support together with similar functions like `PyInterpreterState_Head()`, `PyInterpreterState_Next(`), and `PyInterpreterState_ThreadHead()` . https://bugs.python.org/issue36157 (cherry picked from commit 8c61739) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
1 parent 8384670 commit 35fc38e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/c-api/init.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,11 @@ These functions are only intended to be used by advanced debugging tools.
13831383
Return the interpreter state object at the head of the list of all such objects.
13841384
13851385
1386+
.. c:function:: PyInterpreterState* PyInterpreterState_Main()
1387+
1388+
Return the main interpreter state object.
1389+
1390+
13861391
.. c:function:: PyInterpreterState* PyInterpreterState_Next(PyInterpreterState *interp)
13871392
13881393
Return the next interpreter state object after *interp* from the list of all
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added Documention for PyInterpreterState_Main().

0 commit comments

Comments
 (0)