• 审核事件表

    审核事件表

    This table contains all events raised by sys.audit() orPySys_Audit() calls throughout the CPython runtime and thestandard library. These calls were added in 3.8.0 or later.

    请参阅 sys.addaudithook()PySys_AddAuditHook() 了解有关处理这些事件的详细信息。

    CPython implementation detail: 此表是根据 CPython 文档生成的,可能无法表示其他实现所引发的事件。 请参阅你的运行时专属的文档了解实际引发的事件。

    Audit eventArgumentsReferences
    array.newtypecode, initializer[1]
    builtins.breakpointbreakpointhook[1]
    builtins.inputprompt[1]
    builtins.input/resultresult[1]
    code.newcode, filename, name, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags[1]
    compilesource, filename[1]
    cpython.PyInterpreterStateClear[1]
    cpython.PyInterpreterStateNew[1]
    cpython.PySysClearAuditHooks[1]
    cpython.runcommandcommand[1]
    cpython.runfilefilename[1]
    cpython.run_interactivehookhook[[1]]($6b9263b1c6aa1fbc.md#sys.__interactivehook)
    cpython.run_modulemodule-name[1]
    cpython.run_startupfilename[1]
    cpython.run_stdin[1]
    ctypes.addressofobj[1]
    ctypes.call_functionfunc_pointer, arguments[1]
    ctypes.cdataaddress[1]
    ctypes.cdata/bufferpointer, size, offset[1][2]
    ctypes.create_string_bufferinit, size[1]
    ctypes.create_unicode_bufferinit, size[1]
    ctypes.dlopenname[1]
    ctypes.dlsymlibrary, name[1]
    ctypes.dlsym/handlehandle, name[1]
    ctypes.get_errno[1]
    ctypes.get_last_error[1]
    ctypes.seh_exceptioncode[1]
    ctypes.set_errnoerrno[1]
    ctypes.set_last_errorerror[1]
    ctypes.string_ataddress, size[1]
    ctypes.wstring_ataddress, size[1]
    ensurepip.bootstraproot[1]
    execcode_object[1][2]
    ftplib.connectself, host, port[1]
    ftplib.sendcmdself, cmd[1][2]
    glob.globpathname, recursive[1][2]
    imaplib.openself, host, port[1]
    imaplib.sendself, data[1]
    importmodule, filename, sys.path, sys.meta_path, sys.path_hooks[1]
    mmap.__newfileno, length, access, offset[1]
    nntplib.connectself, host, port[1][2]
    nntplib.putlineself, line[1][2]
    openfile, mode, flags[1][2][3]
    os.listdirpath[1]
    os.scandirpath[1]
    os.systemcommand[1]
    os.truncatefd, length[1][2]
    pdb.Pdb[1]
    pickle.find_classmodule, name[1]
    poplib.connectself, host, port[1][2]
    poplib.putlineself, line[1][2]
    shutil.copytreesrc, dst[1]
    shutil.make_archivebase_name, format, root_dir, base_dir[1]
    shutil.rmtreepath[1]
    smtplib.connectself, host, port[1]
    smtplib.sendself, data[1]
    socket.__newself, family, type, protocol[1]
    socket.bindself, address[1]
    socket.connectself, address[1][2]
    socket.getaddrinfohost, port, family, type, protocol[1]
    socket.gethostbyaddrip_address[1]
    socket.gethostbynamehostname[1][2]
    socket.gethostname[1]
    socket.getnameinfosockaddr[1]
    socket.getservbynameservicename, protocolname[1]
    socket.getservbyportport, protocolname[1]
    socket.sendmsgself, address[1]
    socket.sendtoself, address[1]
    socket.sethostnamename[1]
    sqlite3.connectdatabase[1]
    subprocess.Popenexecutable, args, cwd, env[1]
    sys._current_frames[1]
    sys._getframe[1]
    sys.addaudithook[1][2]
    sys.set_asyncgen_hooks_finalizer[1]
    sys.set_asyncgen_hooks_firstiter[1]
    sys.setprofile[1]
    sys.settrace[1]
    telnetlib.Telnet.openself, host, port[1]
    telnetlib.Telnet.writeself, buffer[1]
    tempfile.mkdtempfullpath[1][2]
    tempfile.mkstempfullpath[1][2][3]
    urllib.Requestfullurl, data, headers, method[1]
    webbrowser.openurl[1]