Skip to content

Commit 2f01cf6

Browse files
bpo-37363: Document internal audit events (GH-14663)
Three internal cpython events were not documented, yet. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37363 (cherry picked from commit ed4b321) Co-authored-by: Christian Heimes <christian@python.org>
1 parent 67b90a0 commit 2f01cf6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Doc/c-api/init.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,9 @@ Initializing and finalizing the interpreter
301301
than once; this can happen if an application calls :c:func:`Py_Initialize` and
302302
:c:func:`Py_FinalizeEx` more than once.
303303

304-
.. versionadded:: 3.6
304+
.. audit-event:: cpython._PySys_ClearAuditHooks "" c.Py_FinalizeEx
305305

306+
.. versionadded:: 3.6
306307

307308
.. c:function:: void Py_Finalize()
308309
@@ -992,12 +993,16 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
992993
be held, but may be held if it is necessary to serialize calls to this
993994
function.
994995
996+
.. audit-event:: cpython.PyInterpreterState_New "" c.PyInterpreterState_New
997+
995998
996999
.. c:function:: void PyInterpreterState_Clear(PyInterpreterState *interp)
9971000
9981001
Reset all information in an interpreter state object. The global interpreter
9991002
lock must be held.
10001003
1004+
.. audit-event:: cpython.PyInterpreterState_Clear "" c.PyInterpreterState_Clear
1005+
10011006
10021007
.. c:function:: void PyInterpreterState_Delete(PyInterpreterState *interp)
10031008

0 commit comments

Comments
 (0)