mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-37390: Add audit event table to documentations (GH-14406)
Also updates some (unreleased) event names to be consistent with the others.
This commit is contained in:
parent
21cfae107e
commit
44f91c388a
34 changed files with 266 additions and 113 deletions
|
@ -45,7 +45,7 @@ bound into a function.
|
|||
The first parameter (*argcount*) now represents the total number of positional arguments,
|
||||
including positional-only.
|
||||
|
||||
.. audit-event:: code.__new__ "code filename name argcount posonlyargcount kwonlyargcount nlocals stacksize flags"
|
||||
.. audit-event:: code.__new__ code,filename,name,argcount,posonlyargcount,kwonlyargcount,nlocals,stacksize,flags c.PyCode_New
|
||||
|
||||
.. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno)
|
||||
|
||||
|
|
|
@ -291,8 +291,6 @@ accessible to C code. They all work with the current interpreter thread's
|
|||
|
||||
.. c:function:: int PySys_Audit(const char *event, const char *format, ...)
|
||||
|
||||
.. index:: single: audit events
|
||||
|
||||
Raises an auditing event with any active hooks. Returns zero for success
|
||||
and non-zero with an exception set on failure.
|
||||
|
||||
|
@ -311,8 +309,6 @@ accessible to C code. They all work with the current interpreter thread's
|
|||
|
||||
.. c:function:: int PySys_AddAuditHook(Py_AuditHookFunction hook, void *userData)
|
||||
|
||||
.. index:: single: audit events
|
||||
|
||||
Adds to the collection of active auditing hooks. Returns zero for success
|
||||
and non-zero on failure. If the runtime has been initialized, also sets an
|
||||
error on failure. Hooks added through this API are called for all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue