Документация Python неофициальный перевод

audit_events.md

198 строк · 23.8 КБ · обычная страница · сырой текст · скачать

1> **Источник:** https://python-all.ru/3.9/library/audit_events.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Таблица событий аудита89Эта таблица содержит все события, инициируемые вызовами [`sys.audit()`](https://python-all.ru/3.9/library/sys.html#sys.audit) или [`PySys_Audit()`](https://python-all.ru/3.9/c-api/sys.html#c.PySys_Audit) в среде выполнения CPython и стандартной библиотеке. Эти вызовы были добавлены в версии 3.8.0 или позднее (см. [**PEP 578**](https://python-all.ru/3.9/library/audit_events.html)).1011См. [`sys.addaudithook()`](https://python-all.ru/3.9/library/sys.html#sys.addaudithook) и [`PySys_AddAuditHook()`](https://python-all.ru/3.9/c-api/sys.html#c.PySys_AddAuditHook) для получения информации об обработке этих событий.1213**Особенность реализации CPython:** Эта таблица создана на основе документации CPython и может не отражать события, порождаемые другими реализациями. Обратитесь к документации вашего конкретного времени выполнения для получения списка реальных событий.1415| Событие аудита | Аргументы | Ссылки |16| --- | --- | --- |17| array.\_\_new\_\_ | `typecode`, `initializer` | [\[1\]](https://python-all.ru/3.9/library/array.html#array.array) |18| builtins.breakpoint | `breakpointhook` | [\[1\]](https://python-all.ru/3.9/library/functions.html#breakpoint) |19| builtins.id | `id` | [\[1\]](https://python-all.ru/3.9/library/functions.html#id) |20| builtins.input | `prompt` | [\[1\]](https://python-all.ru/3.9/library/functions.html#input) |21| builtins.input/result | `result` | [\[1\]](https://python-all.ru/3.9/library/functions.html#input) |22| code.\_\_new\_\_ | `code`, `filename`, `name`, `argcount`, `posonlyargcount`, `kwonlyargcount`, `nlocals`, `stacksize`, `flags` | [\[1\]](https://python-all.ru/3.9/library/types.html#types.CodeType) |23| compile | `source`, `filename` | [\[1\]](https://python-all.ru/3.9/library/functions.html#compile) |24| cpython.PyInterpreterState\_Clear |  | [\[1\]](https://python-all.ru/3.9/c-api/init.html#c.PyInterpreterState_Clear) |25| cpython.PyInterpreterState\_New |  | [\[1\]](https://python-all.ru/3.9/c-api/init.html#c.PyInterpreterState_New) |26| cpython.\_PySys\_ClearAuditHooks |  | [\[1\]](https://python-all.ru/3.9/c-api/init.html#c.Py_FinalizeEx) |27| cpython.run\_command | `command` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#cmdoption-c) |28| cpython.run\_file | `filename` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#audit_event_cpython_run_file_0) |29| cpython.run\_interactivehook | `hook` | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.__interactivehook__) |30| cpython.run\_module | `module-name` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#cmdoption-m) |31| cpython.run\_startup | `filename` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#envvar-PYTHONSTARTUP) |32| cpython.run\_stdin |  | [\[1\]](https://python-all.ru/3.9/library/asyncio.html#audit_event_cpython_run_stdin_0)[\[2\]](https://python-all.ru/3.9/using/cmdline.html#audit_event_cpython_run_stdin_1)[\[3\]](https://python-all.ru/3.9/using/cmdline.html#audit_event_cpython_run_stdin_2) |33| ctypes.addressof | `obj` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.addressof) |34| ctypes.call\_function | `func_pointer`, `arguments` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#foreign-functions) |35| ctypes.cdata | `address` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes._CData.from_address) |36| ctypes.cdata/buffer | `pointer`, `size`, `offset` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes._CData.from_buffer)[\[2\]](https://python-all.ru/3.9/library/ctypes.html#ctypes._CData.from_buffer_copy) |37| ctypes.create\_string\_buffer | `init`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.create_string_buffer) |38| ctypes.create\_unicode\_buffer | `init`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.create_unicode_buffer) |39| ctypes.dlopen | `name` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.LibraryLoader) |40| ctypes.dlsym | `library`, `name` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.LibraryLoader) |41| ctypes.dlsym/handle | `handle`, `name` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.LibraryLoader) |42| ctypes.get\_errno |  | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.get_errno) |43| ctypes.get\_last\_error |  | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.get_last_error) |44| ctypes.seh\_exception | `code` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#foreign-functions) |45| ctypes.set\_errno | `errno` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.set_errno) |46| ctypes.set\_last\_error | `error` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.set_last_error) |47| ctypes.string\_at | `address`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.string_at) |48| ctypes.wstring\_at | `address`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.wstring_at) |49| ensurepip.bootstrap | `root` | [\[1\]](https://python-all.ru/3.9/library/ensurepip.html#ensurepip.bootstrap) |50| exec | `code_object` | [\[1\]](https://python-all.ru/3.9/library/functions.html#eval)[\[2\]](https://python-all.ru/3.9/library/functions.html#exec) |51| fcntl.fcntl | `fd`, `cmd`, `arg` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.fcntl) |52| fcntl.flock | `fd`, `operation` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.flock) |53| fcntl.ioctl | `fd`, `request`, `arg` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.ioctl) |54| fcntl.lockf | `fd`, `cmd`, `len`, `start`, `whence` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.lockf) |55| ftplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/ftplib.html#ftplib.FTP.connect) |56| ftplib.sendcmd | `self`, `cmd` | [\[1\]](https://python-all.ru/3.9/library/ftplib.html#ftplib.FTP.sendcmd)[\[2\]](https://python-all.ru/3.9/library/ftplib.html#ftplib.FTP.voidcmd) |57| function.\_\_new\_\_ | `code` | [\[1\]](https://python-all.ru/3.9/library/types.html#types.FunctionType) |58| gc.get\_objects | `generation` | [\[1\]](https://python-all.ru/3.9/library/gc.html#gc.get_objects) |59| gc.get\_referents | `objs` | [\[1\]](https://python-all.ru/3.9/library/gc.html#gc.get_referents) |60| gc.get\_referrers | `objs` | [\[1\]](https://python-all.ru/3.9/library/gc.html#gc.get_referrers) |61| glob.glob | `pathname`, `recursive` | [\[1\]](https://python-all.ru/3.9/library/glob.html#glob.glob)[\[2\]](https://python-all.ru/3.9/library/glob.html#glob.iglob) |62| imaplib.open | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/imaplib.html#imaplib.IMAP4.open) |63| imaplib.send | `self`, `data` | [\[1\]](https://python-all.ru/3.9/library/imaplib.html#imaplib.IMAP4.send) |64| import | `module`, `filename`, `sys.path`, `sys.meta_path`, `sys.path_hooks` | [\[1\]](https://python-all.ru/3.9/reference/simple_stmts.html#import) |65| marshal.dumps | `value`, `version` | [\[1\]](https://python-all.ru/3.9/library/marshal.html#marshal.dump) |66| marshal.load |  | [\[1\]](https://python-all.ru/3.9/library/marshal.html#marshal.load) |67| marshal.loads | `bytes` | [\[1\]](https://python-all.ru/3.9/library/marshal.html#marshal.load) |68| mmap.\_\_new\_\_ | `fileno`, `length`, `access`, `offset` | [\[1\]](https://python-all.ru/3.9/library/mmap.html#mmap.mmap) |69| msvcrt.get\_osfhandle | `fd` | [\[1\]](https://python-all.ru/3.9/library/msvcrt.html#msvcrt.get_osfhandle) |70| msvcrt.locking | `fd`, `mode`, `nbytes` | [\[1\]](https://python-all.ru/3.9/library/msvcrt.html#msvcrt.locking) |71| msvcrt.open\_osfhandle | `handle`, `flags` | [\[1\]](https://python-all.ru/3.9/library/msvcrt.html#msvcrt.open_osfhandle) |72| nntplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP)[\[2\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP_SSL) |73| nntplib.putline | `self`, `line` | [\[1\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP)[\[2\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP_SSL) |74| object.\_\_delattr\_\_ | `obj`, `name` | [\[1\]](https://python-all.ru/3.9/reference/datamodel.html#object.__delattr__) |75| object.\_\_getattr\_\_ | `obj`, `name` | [\[1\]](https://python-all.ru/3.9/reference/datamodel.html#object.__getattribute__) |76| object.\_\_setattr\_\_ | `obj`, `name`, `value` | [\[1\]](https://python-all.ru/3.9/reference/datamodel.html#object.__setattr__) |77| открыт | `file`, `mode`, `flags` | [\[1\]](https://python-all.ru/3.9/library/functions.html#open)[\[2\]](https://python-all.ru/3.9/library/io.html#io.open)[\[3\]](https://python-all.ru/3.9/library/os.html#os.open) |78| os.add\_dll\_directory | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.add_dll_directory) |79| os.chdir | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chdir)[\[2\]](https://python-all.ru/3.9/library/os.html#os.fchdir) |80| os.chflags | `path`, `flags` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chflags)[\[2\]](https://python-all.ru/3.9/library/os.html#os.lchflags) |81| os.chmod | `path`, `mode`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chmod)[\[2\]](https://python-all.ru/3.9/library/os.html#os.fchmod)[\[3\]](https://python-all.ru/3.9/library/os.html#os.lchmod) |82| os.chown | `path`, `uid`, `gid`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chown)[\[2\]](https://python-all.ru/3.9/library/os.html#os.fchown)[\[3\]](https://python-all.ru/3.9/library/os.html#os.lchown) |83| os.exec | `path`, `args`, `env` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.execl) |84| os.fork |  | [\[1\]](https://python-all.ru/3.9/library/os.html#os.fork) |85| os.forkpty |  | [\[1\]](https://python-all.ru/3.9/library/os.html#os.forkpty) |86| os.fwalk | `top`, `topdown`, `onerror`, `follow_symlinks`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.fwalk) |87| os.getxattr | `path`, `attribute` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.getxattr) |88| os.kill | `pid`, `sig` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.kill) |89| os.killpg | `pgid`, `sig` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.killpg) |90| os.link | `src`, `dst`, `src_dir_fd`, `dst_dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.link) |91| os.listdir | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.listdir) |92| os.listxattr | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.listxattr) |93| os.lockf | `fd`, `cmd`, `len` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.lockf) |94| os.mkdir | `path`, `mode`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.makedirs)[\[2\]](https://python-all.ru/3.9/library/os.html#os.mkdir) |95| os.posix\_spawn | `path`, `argv`, `env` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.posix_spawn)[\[2\]](https://python-all.ru/3.9/library/os.html#os.posix_spawnp) |96| os.putenv | `key`, `value` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.putenv) |97| os.remove | `path`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.remove)[\[2\]](https://python-all.ru/3.9/library/os.html#os.removedirs)[\[3\]](https://python-all.ru/3.9/library/os.html#os.unlink) |98| os.removexattr | `path`, `attribute` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.removexattr) |99| os.rename | `src`, `dst`, `src_dir_fd`, `dst_dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.rename)[\[2\]](https://python-all.ru/3.9/library/os.html#os.renames)[\[3\]](https://python-all.ru/3.9/library/os.html#os.replace) |100| os.rmdir | `path`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.rmdir) |101| os.scandir | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.scandir) |102| os.setxattr | `path`, `attribute`, `value`, `flags` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.setxattr) |103| os.spawn | `mode`, `path`, `args`, `env` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.spawnl) |104| os.startfile | `path`, `operation` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.startfile) |105| os.symlink | `src`, `dst`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.symlink) |106| os.system | `command` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.system) |107| os.truncate | `fd`, `length` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.ftruncate)[\[2\]](https://python-all.ru/3.9/library/os.html#os.truncate) |108| os.unsetenv | `key` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.unsetenv) |109| os.utime | `path`, `times`, `ns`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.utime) |110| os.walk | `top`, `topdown`, `onerror`, `followlinks` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.walk) |111| pathlib.Path.glob | `self`, `pattern` | [\[1\]](https://python-all.ru/3.9/library/pathlib.html#pathlib.Path.glob) |112| pathlib.Path.rglob | `self`, `pattern` | [\[1\]](https://python-all.ru/3.9/library/pathlib.html#pathlib.Path.rglob) |113| pdb.Pdb |  | [\[1\]](https://python-all.ru/3.9/library/pdb.html#pdb.Pdb) |114| pickle.find\_class | `module`, `name` | [\[1\]](https://python-all.ru/3.9/library/pickle.html#pickle.Unpickler.find_class) |115| poplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3)[\[2\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3_SSL) |116| poplib.putline | `self`, `line` | [\[1\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3)[\[2\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3_SSL) |117| pty.spawn | `argv` | [\[1\]](https://python-all.ru/3.9/library/pty.html#pty.spawn) |118| resource.prlimit | `pid`, `resource`, `limits` | [\[1\]](https://python-all.ru/3.9/library/resource.html#resource.prlimit) |119| resource.setrlimit | `resource`, `limits` | [\[1\]](https://python-all.ru/3.9/library/resource.html#resource.setrlimit) |120| setopencodehook |  | [\[1\]](https://python-all.ru/3.9/c-api/file.html#c.PyFile_SetOpenCodeHook) |121| shutil.chown | `path`, `user`, `group` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.chown) |122| shutil.copyfile | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy)[\[2\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy2)[\[3\]](https://python-all.ru/3.9/library/shutil.html#shutil.copyfile) |123| shutil.copymode | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy)[\[2\]](https://python-all.ru/3.9/library/shutil.html#shutil.copymode) |124| shutil.copystat | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy2)[\[2\]](https://python-all.ru/3.9/library/shutil.html#shutil.copystat) |125| shutil.copytree | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copytree) |126| shutil.make\_archive | `base_name`, `format`, `root_dir`, `base_dir` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.make_archive) |127| shutil.move | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.move) |128| shutil.rmtree | `path` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.rmtree) |129| shutil.unpack\_archive | `filename`, `extract_dir`, `format` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.unpack_archive) |130| signal.pthread\_kill | `thread_id`, `signalnum` | [\[1\]](https://python-all.ru/3.9/library/signal.html#signal.pthread_kill) |131| smtplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/smtplib.html#smtplib.SMTP.connect) |132| smtplib.send | `self`, `data` | [\[1\]](https://python-all.ru/3.9/library/smtplib.html#smtplib.SMTP) |133| socket.\_\_new\_\_ | `self`, `family`, `type`, `protocol` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket) |134| socket.bind | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.bind) |135| socket.connect | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.connect)[\[2\]](https://python-all.ru/3.9/library/socket.html#socket.socket.connect_ex) |136| socket.getaddrinfo | `host`, `port`, `family`, `type`, `protocol` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getaddrinfo) |137| socket.gethostbyaddr | `ip_address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.gethostbyaddr) |138| socket.gethostbyname | `hostname` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.gethostbyname)[\[2\]](https://python-all.ru/3.9/library/socket.html#socket.gethostbyname_ex) |139| socket.gethostname |  | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.gethostname) |140| socket.getnameinfo | `sockaddr` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getnameinfo) |141| socket.getservbyname | `servicename`, `protocolname` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getservbyname) |142| socket.getservbyport | `port`, `protocolname` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getservbyport) |143| socket.sendmsg | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.sendmsg) |144| socket.sendto | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.sendto) |145| socket.sethostname | `name` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.sethostname) |146| sqlite3.connect | `database` | [\[1\]](https://python-all.ru/3.9/library/sqlite3.html#sqlite3.connect) |147| subprocess.Popen | `executable`, `args`, `cwd`, `env` | [\[1\]](https://python-all.ru/3.9/library/subprocess.html#subprocess.Popen) |148| sys.\_current\_frames |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys._current_frames) |149| sys.\_getframe |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys._getframe) |150| sys.addaudithook |  | [\[1\]](https://python-all.ru/3.9/c-api/sys.html#c.PySys_AddAuditHook)[\[2\]](https://python-all.ru/3.9/library/sys.html#sys.addaudithook) |151| sys.excepthook | `hook`, `type`, `value`, `traceback` | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.excepthook) |152| sys.set\_asyncgen\_hooks\_finalizer |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.set_asyncgen_hooks) |153| sys.set\_asyncgen\_hooks\_firstiter |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.set_asyncgen_hooks) |154| sys.setprofile |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.setprofile) |155| sys.settrace |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.settrace) |156| sys.unraisablehook | `hook`, `unraisable` | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.unraisablehook) |157| syslog.closelog |  | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.closelog) |158| syslog.openlog | `ident`, `logoption`, `facility` | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.openlog) |159| syslog.setlogmask | `maskpri` | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.setlogmask) |160| syslog.syslog | `priority`, `message` | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.syslog) |161| telnetlib.Telnet.open | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/telnetlib.html#telnetlib.Telnet.open) |162| telnetlib.Telnet.write | `self`, `buffer` | [\[1\]](https://python-all.ru/3.9/library/telnetlib.html#telnetlib.Telnet.write) |163| tempfile.mkdtemp | `fullpath` | [\[1\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.TemporaryDirectory)[\[2\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.mkdtemp) |164| tempfile.mkstemp | `fullpath` | [\[1\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.NamedTemporaryFile)[\[2\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.TemporaryFile)[\[3\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.mkstemp) |165| urllib.Request | `fullurl`, `data`, `headers`, `method` | [\[1\]](https://python-all.ru/3.9/library/urllib.request.html#urllib.request.urlopen) |166| webbrowser.open | `url` | [\[1\]](https://python-all.ru/3.9/library/webbrowser.html#webbrowser.open) |167| winreg.ConnectRegistry | `computer_name`, `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.ConnectRegistry) |168| winreg.CreateKey | `key`, `sub_key`, `access` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKey)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKeyEx) |169| winreg.DeleteKey | `key`, `sub_key`, `access` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.DeleteKey)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.DeleteKeyEx) |170| winreg.DeleteValue | `key`, `value` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.DeleteValue) |171| winreg.DisableReflectionKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.DisableReflectionKey) |172| winreg.EnableReflectionKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.EnableReflectionKey) |173| winreg.EnumKey | `key`, `index` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.EnumKey) |174| winreg.EnumValue | `key`, `index` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.EnumValue) |175| winreg.ExpandEnvironmentStrings | `str` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.ExpandEnvironmentStrings) |176| winreg.LoadKey | `key`, `sub_key`, `file_name` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.LoadKey) |177| winreg.OpenKey | `key`, `sub_key`, `access` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.OpenKey) |178| winreg.OpenKey/result | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKey)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKeyEx)[\[3\]](https://python-all.ru/3.9/library/winreg.html#winreg.OpenKey) |179| winreg.PyHKEY.Detach | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.PyHKEY.Detach) |180| winreg.QueryInfoKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryInfoKey) |181| winreg.QueryReflectionKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryReflectionKey) |182| winreg.QueryValue | `key`, `sub_key`, `value_name` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryValue)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryValueEx) |183| winreg.SaveKey | `key`, `file_name` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.SaveKey) |184| winreg.SetValue | `key`, `sub_key`, `type`, `value` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.SetValue)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.SetValueEx) |185186Следующие события генерируются внутренне и не соответствуют ни одному публичному API CPython:187188| Событие аудита | Аргументы |189| --- | --- |190| \_winapi.CreateFile | `file_name`, `desired_access`, `share_mode`, `creation_disposition`, `flags_and_attributes` |191| \_winapi.CreateJunction | `src_path`, `dst_path` |192| \_winapi.CreateNamedPipe | `name`, `open_mode`, `pipe_mode` |193| \_winapi.CreatePipe |  |194| \_winapi.CreateProcess | `application_name`, `command_line`, `current_directory` |195| \_winapi.OpenProcess | `process_id`, `desired_access` |196| \_winapi.TerminateProcess | `handle`, `exit_code` |197| ctypes.PyObj\_FromPtr | `obj` |198