Skip to content

Commit 8c61739

Browse files
nanjekyejoannahmiss-islington
authored andcommitted
bpo-36157:Document PyInterpreterState_Main() (pythonGH-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
1 parent a4d7836 commit 8c61739

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Doc/c-api/init.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,11 @@ These functions are only intended to be used by advanced debugging tools.
13951395
Return the interpreter state object at the head of the list of all such objects.
13961396
13971397
1398+
.. c:function:: PyInterpreterState* PyInterpreterState_Main()
1399+
1400+
Return the main interpreter state object.
1401+
1402+
13981403
.. c:function:: PyInterpreterState* PyInterpreterState_Next(PyInterpreterState *interp)
13991404
14001405
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)