审计事件表¶
下表包含了在整个 CPython 运行时和标准库中由 sys.audit()
或 PySys_Audit()
调用引发的所有事件。
请参阅 sys.addaudithook()
和 PySys_AddAuditHook()
了解有关处理这些事件的详细信息。
CPython implementation detail: 此表是根据 CPython 文档生成的,可能无法表示其他实现所引发的事件。 请参阅你的运行时专属的文档了解实际引发的事件。
Audit event |
Arguments |
References |
---|---|---|
array.__new__ |
|
|
builtins.breakpoint |
|
|
builtins.input |
|
|
builtins.input/result |
|
|
code.__new__ |
|
|
compile |
|
|
cpython.PyInterpreterState_Clear |
||
cpython.PyInterpreterState_New |
||
cpython._PySys_ClearAuditHooks |
||
cpython.run_command |
|
|
cpython.run_file |
|
|
cpython.run_interactivehook |
|
|
cpython.run_module |
|
|
cpython.run_startup |
|
|
cpython.run_stdin |
||
ctypes.cdata |
|
|
ctypes.dlopen |
|
|
ctypes.dlsym |
|
|
ensurepip.bootstrap |
|
|
exec |
|
|
ftplib.connect |
|
|
ftplib.sendcmd |
|
|
glob.glob |
|
|
imaplib.open |
|
|
imaplib.send |
|
|
mmap.__new__ |
|
|
nntplib.connect |
|
|
nntplib.putline |
|
|
open |
|
|
os.listdir |
|
|
os.scandir |
|
|
os.system |
|
|
os.truncate |
|
|
pdb.Pdb |
||
pickle.find_class |
|
|
poplib.connect |
|
|
poplib.putline |
|
|
shutil.copytree |
|
|
shutil.make_archive |
|
|
shutil.rmtree |
|
|
smtplib.connect |
|
|
smtplib.send |
|
|
socket.__new__ |
|
|
socket.bind |
|
|
socket.connect |
|
|
socket.getaddrinfo |
|
|
socket.gethostbyaddr |
|
|
socket.gethostbyname |
|
|
socket.gethostname |
||
socket.getnameinfo |
|
|
socket.getservbyname |
|
|
socket.getservbyport |
|
|
socket.sendmsg |
|
|
socket.sendto |
|
|
socket.sethostname |
|
|
sqlite3.connect |
|
|
subprocess.Popen |
|
|
sys._current_frames |
||
sys._getframe |
||
sys.set_asyncgen_hooks_finalizer |
||
sys.set_asyncgen_hooks_firstiter |
||
sys.setprofile |
||
sys.settrace |
||
telnetlib.Telnet.open |
|
|
telnetlib.Telnet.write |
|
|
tempfile.mkdtemp |
|
|
tempfile.mkstemp |
|
|
urllib.Request |
|
|
webbrowser.open |
|