稽核事件表

這張表包含了所有在 CPython 運行環境 (runtime) 與標準函式庫對於 sys.audit()PySys_Audit() 的呼叫所觸發的事件。這些呼叫是在 3.8 或更新的版本中被新增(請見 PEP 578)。

請參考 sys.addaudithook()PySys_AddAuditHook() 來了解如何處理這些事件。

這張表是從 CPython 文件產生的,可能不包含其它實作所觸發的事件。請參考你的運行環境 (runtime) 特定文件來了解實際會觸發的事件。

Audit event

Arguments

References

_thread.start_new_thread

function, args, kwargs

[1]

array.__new__

typecode, initializer

[1]

builtins.breakpoint

breakpointhook

[1]

builtins.id

id

[1]

builtins.input

prompt

[1]

builtins.input/result

result

[1]

code.__new__

code, filename, name, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags

[1]

compile