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

allos.md

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

1> **Источник:** https://python-all.ru/3.3/library/allos.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# 16. Универсальные службы операционной системы89Модули, описанные в этой главе, предоставляют интерфейсы к возможностям операционной системы, доступным (почти) во всех ОС, таким как файлы и часы. Интерфейсы в основном смоделированы по образцу Unix- или C-интерфейсов, но они также доступны и в большинстве других систем. Вот обзор:1011- [16.1. `os` – Различные интерфейсы операционной системы](https://python-all.ru/3.3/library/os.html)1213  - [16.1.1. Имена файлов, аргументы командной строки и переменные окружения](https://python-all.ru/3.3/library/os.html#file-names-command-line-arguments-and-environment-variables)14  - [16.1.2. Параметры процесса](https://python-all.ru/3.3/library/os.html#process-parameters)15  - [16.1.3. Создание файловых объектов](https://python-all.ru/3.3/library/os.html#file-object-creation)16  - [16.1.4. Операции с файловыми дескрипторами](https://python-all.ru/3.3/library/os.html#file-descriptor-operations)1718    - [16.1.4.1. Константы флагов `open()`](https://python-all.ru/3.3/library/os.html#open-flag-constants)19    - [16.1.4.2. Определение размера терминала](https://python-all.ru/3.3/library/os.html#querying-the-size-of-a-terminal)20  - [16.1.5. Файлы и каталоги](https://python-all.ru/3.3/library/os.html#files-and-directories)2122    - [16.1.5.1. Расширенные атрибуты Linux](https://python-all.ru/3.3/library/os.html#linux-extended-attributes)23  - [16.1.6. Управление процессами](https://python-all.ru/3.3/library/os.html#process-management)24  - [16.1.7. Интерфейс к планировщику](https://python-all.ru/3.3/library/os.html#interface-to-the-scheduler)25  - [16.1.8. Разная системная информация](https://python-all.ru/3.3/library/os.html#miscellaneous-system-information)26  - [16.1.9. Прочие функции](https://python-all.ru/3.3/library/os.html#miscellaneous-functions)27- [16.2. `io` – Основные инструменты для работы с потоками данных](https://python-all.ru/3.3/library/io.html)2829  - [16.2.1. Обзор](https://python-all.ru/3.3/library/io.html#overview)3031    - [16.2.1.1. Текстовый ввод-вывод](https://python-all.ru/3.3/library/io.html#text-i-o)32    - [16.2.1.2. Двоичный ввод-вывод](https://python-all.ru/3.3/library/io.html#binary-i-o)33    - [16.2.1.3. Необработанный ввод-вывод](https://python-all.ru/3.3/library/io.html#raw-i-o)34  - [16.2.2. Интерфейс модуля высокого уровня](https://python-all.ru/3.3/library/io.html#high-level-module-interface)3536    - [16.2.2.1. Потоки в памяти](https://python-all.ru/3.3/library/io.html#in-memory-streams)37  - [16.2.3. Иерархия классов](https://python-all.ru/3.3/library/io.html#class-hierarchy)3839    - [16.2.3.1. Базовые классы ввода-вывода](https://python-all.ru/3.3/library/io.html#i-o-base-classes)40    - [16.2.3.2. Сырой файловый ввод-вывод](https://python-all.ru/3.3/library/io.html#raw-file-i-o)41    - [16.2.3.3. Буферизированные потоки данных](https://python-all.ru/3.3/library/io.html#buffered-streams)42    - [16.2.3.4. Текстовый ввод-вывод](https://python-all.ru/3.3/library/io.html#id1)43  - [16.2.4. Производительность](https://python-all.ru/3.3/library/io.html#performance)4445    - [16.2.4.1. Двоичный ввод-вывод](https://python-all.ru/3.3/library/io.html#id2)46    - [16.2.4.2. Текстовый ввод-вывод](https://python-all.ru/3.3/library/io.html#id3)47    - [16.2.4.3. Многопоточность](https://python-all.ru/3.3/library/io.html#multi-threading)48    - [16.2.4.4. Реентерабельность](https://python-all.ru/3.3/library/io.html#reentrancy)49- [16.3. `time` – Доступ ко времени и преобразования](https://python-all.ru/3.3/library/time.html)50- [16.4. `argparse` – Парсер параметров командной строки, аргументов и подкоманд](https://python-all.ru/3.3/library/argparse.html)5152  - [16.4.1. Пример](https://python-all.ru/3.3/library/argparse.html#example)5354    - [16.4.1.1. Создание парсера](https://python-all.ru/3.3/library/argparse.html#creating-a-parser)55    - [16.4.1.2. Добавление аргументов](https://python-all.ru/3.3/library/argparse.html#adding-arguments)56    - [16.4.1.3. Разбор аргументов](https://python-all.ru/3.3/library/argparse.html#parsing-arguments)57  - [16.4.2. Объекты ArgumentParser](https://python-all.ru/3.3/library/argparse.html#argumentparser-objects)5859    - [16.4.2.1. prog](https://python-all.ru/3.3/library/argparse.html#prog)60    - [16.4.2.2. usage](https://python-all.ru/3.3/library/argparse.html#usage)61    - [16.4.2.3. description](https://python-all.ru/3.3/library/argparse.html#description)62    - [16.4.2.4. epilog](https://python-all.ru/3.3/library/argparse.html#epilog)63    - [16.4.2.5. parents](https://python-all.ru/3.3/library/argparse.html#parents)64    - [16.4.2.6. formatter\_class](https://python-all.ru/3.3/library/argparse.html#formatter-class)65    - [16.4.2.7. prefix\_chars](https://python-all.ru/3.3/library/argparse.html#prefix-chars)66    - [16.4.2.8. fromfile\_prefix\_chars](https://python-all.ru/3.3/library/argparse.html#fromfile-prefix-chars)67    - [16.4.2.9. argument\_default](https://python-all.ru/3.3/library/argparse.html#argument-default)68    - [16.4.2.10. conflict\_handler](https://python-all.ru/3.3/library/argparse.html#conflict-handler)69    - [16.4.2.11. add\_help](https://python-all.ru/3.3/library/argparse.html#add-help)70  - [16.4.3. Метод add\_argument()](https://python-all.ru/3.3/library/argparse.html#the-add-argument-method)7172    - [16.4.3.1. Имя или флаги](https://python-all.ru/3.3/library/argparse.html#name-or-flags)73    - [16.4.3.2. действие](https://python-all.ru/3.3/library/argparse.html#action)74    - [16.4.3.3. nargs](https://python-all.ru/3.3/library/argparse.html#nargs)75    - [16.4.3.4. const](https://python-all.ru/3.3/library/argparse.html#const)76    - [16.4.3.5. default](https://python-all.ru/3.3/library/argparse.html#default)77    - [16.4.3.6. type](https://python-all.ru/3.3/library/argparse.html#type)78    - [16.4.3.7. варианты выбора](https://python-all.ru/3.3/library/argparse.html#choices)79    - [16.4.3.8. обязательный](https://python-all.ru/3.3/library/argparse.html#required)80    - [16.4.3.9. справка](https://python-all.ru/3.3/library/argparse.html#help)81    - [16.4.3.10. metavar](https://python-all.ru/3.3/library/argparse.html#metavar)82    - [16.4.3.11. dest](https://python-all.ru/3.3/library/argparse.html#dest)83    - [16.4.3.12. Классы Action](https://python-all.ru/3.3/library/argparse.html#action-classes)84  - [16.4.4. Метод parse\_args()](https://python-all.ru/3.3/library/argparse.html#the-parse-args-method)8586    - [16.4.4.1. Синтаксис значений параметров](https://python-all.ru/3.3/library/argparse.html#option-value-syntax)87    - [16.4.4.2. Недопустимые аргументы](https://python-all.ru/3.3/library/argparse.html#invalid-arguments)88    - [16.4.4.3. Аргументы, содержащие `-`](https://python-all.ru/3.3/library/argparse.html#arguments-containing)89    - [16.4.4.4. Сокращения аргументов (сопоставление по префиксу)](https://python-all.ru/3.3/library/argparse.html#argument-abbreviations-prefix-matching)90    - [16.4.4.5. За пределами `sys.argv`](https://python-all.ru/3.3/library/argparse.html#beyond-sys-argv)91    - [16.4.4.6. Объект Namespace](https://python-all.ru/3.3/library/argparse.html#the-namespace-object)92  - [16.4.5. Другие утилиты](https://python-all.ru/3.3/library/argparse.html#other-utilities)9394    - [16.4.5.1. Подкоманды](https://python-all.ru/3.3/library/argparse.html#sub-commands)95    - [16.4.5.2. Объекты FileType](https://python-all.ru/3.3/library/argparse.html#filetype-objects)96    - [16.4.5.3. Группы аргументов](https://python-all.ru/3.3/library/argparse.html#argument-groups)97    - [16.4.5.4. Взаимное исключение](https://python-all.ru/3.3/library/argparse.html#mutual-exclusion)98    - [16.4.5.5. Значения парсера по умолчанию](https://python-all.ru/3.3/library/argparse.html#parser-defaults)99    - [16.4.5.6. Вывод справки](https://python-all.ru/3.3/library/argparse.html#printing-help)100    - [16.4.5.7. Частичный разбор](https://python-all.ru/3.3/library/argparse.html#partial-parsing)101    - [16.4.5.8. Настройка разбора файлов](https://python-all.ru/3.3/library/argparse.html#customizing-file-parsing)102    - [16.4.5.9. Методы выхода](https://python-all.ru/3.3/library/argparse.html#exiting-methods)103  - [16.4.6. Обновление кода optparse](https://python-all.ru/3.3/library/argparse.html#upgrading-optparse-code)104- [16.5. `optparse` – Парсер параметров командной строки](https://python-all.ru/3.3/library/optparse.html)105106  - [16.5.1. Предыстория](https://python-all.ru/3.3/library/optparse.html#background)107108    - [16.5.1.1. Терминология](https://python-all.ru/3.3/library/optparse.html#terminology)109    - [16.5.1.2. Для чего нужны опции?](https://python-all.ru/3.3/library/optparse.html#what-are-options-for)110    - [16.5.1.3. Для чего нужны позиционные аргументы?](https://python-all.ru/3.3/library/optparse.html#what-are-positional-arguments-for)111  - [16.5.2. Учебное пособие](https://python-all.ru/3.3/library/optparse.html#tutorial)112113    - [16.5.2.1. Понимание действий опций](https://python-all.ru/3.3/library/optparse.html#understanding-option-actions)114    - [16.5.2.2. Действие store](https://python-all.ru/3.3/library/optparse.html#the-store-action)115    - [16.5.2.3. Обработка булевых опций (флагов)](https://python-all.ru/3.3/library/optparse.html#handling-boolean-flag-options)116    - [16.5.2.4. Другие действия](https://python-all.ru/3.3/library/optparse.html#other-actions)117    - [16.5.2.5. Значения по умолчанию](https://python-all.ru/3.3/library/optparse.html#default-values)118    - [16.5.2.6. Формирование справки](https://python-all.ru/3.3/library/optparse.html#generating-help)119120      - [16.5.2.6.1. Группировка опций](https://python-all.ru/3.3/library/optparse.html#grouping-options)121    - [16.5.2.7. Вывод строки версии](https://python-all.ru/3.3/library/optparse.html#printing-a-version-string)122    - [16.5.2.8. Как `optparse` обрабатывает ошибки](https://python-all.ru/3.3/library/optparse.html#how-optparse-handles-errors)123    - [16.5.2.9. Собираем всё вместе](https://python-all.ru/3.3/library/optparse.html#putting-it-all-together)124  - [16.5.3. Справочное руководство](https://python-all.ru/3.3/library/optparse.html#reference-guide)125126    - [16.5.3.1. Создание парсера](https://python-all.ru/3.3/library/optparse.html#creating-the-parser)127    - [16.5.3.2. Наполнение парсера](https://python-all.ru/3.3/library/optparse.html#populating-the-parser)128    - [16.5.3.3. Определение опций](https://python-all.ru/3.3/library/optparse.html#defining-options)129    - [16.5.3.4. Атрибуты опций](https://python-all.ru/3.3/library/optparse.html#option-attributes)130    - [16.5.3.5. Стандартные действия опций](https://python-all.ru/3.3/library/optparse.html#standard-option-actions)131    - [16.5.3.6. Стандартные типы опций](https://python-all.ru/3.3/library/optparse.html#standard-option-types)132    - [16.5.3.7. Разбор аргументов](https://python-all.ru/3.3/library/optparse.html#parsing-arguments)133    - [16.5.3.8. Запросы к парсеру опций и управление им](https://python-all.ru/3.3/library/optparse.html#querying-and-manipulating-your-option-parser)134    - [16.5.3.9. Конфликты между опциями](https://python-all.ru/3.3/library/optparse.html#conflicts-between-options)135    - [16.5.3.10. Очистка](https://python-all.ru/3.3/library/optparse.html#cleanup)136    - [16.5.3.11. Прочие методы](https://python-all.ru/3.3/library/optparse.html#other-methods)137  - [16.5.4. Колбэки параметров](https://python-all.ru/3.3/library/optparse.html#option-callbacks)138139    - [16.5.4.1. Определение параметра-колбэка](https://python-all.ru/3.3/library/optparse.html#defining-a-callback-option)140    - [16.5.4.2. Как вызываются колбэки](https://python-all.ru/3.3/library/optparse.html#how-callbacks-are-called)141    - [16.5.4.3. Возникновение ошибок в колбэке](https://python-all.ru/3.3/library/optparse.html#raising-errors-in-a-callback)142    - [16.5.4.4. Пример колбэка 1: простейший колбэк](https://python-all.ru/3.3/library/optparse.html#callback-example-1-trivial-callback)143    - [16.5.4.5. Пример колбэка 2: проверка порядка параметров](https://python-all.ru/3.3/library/optparse.html#callback-example-2-check-option-order)144    - [16.5.4.6. Пример колбэка 3: проверка порядка параметров (обобщённый)](https://python-all.ru/3.3/library/optparse.html#callback-example-3-check-option-order-generalized)145    - [16.5.4.7. Пример колбэка 4: проверка произвольного условия](https://python-all.ru/3.3/library/optparse.html#callback-example-4-check-arbitrary-condition)146    - [16.5.4.8. Пример колбэка 5: фиксированные аргументы](https://python-all.ru/3.3/library/optparse.html#callback-example-5-fixed-arguments)147    - [16.5.4.9. Пример колбэка 6: переменные аргументы](https://python-all.ru/3.3/library/optparse.html#callback-example-6-variable-arguments)148  - [16.5.5. Расширение `optparse`](https://python-all.ru/3.3/library/optparse.html#extending-optparse)149150    - [16.5.5.1. Добавление новых типов](https://python-all.ru/3.3/library/optparse.html#adding-new-types)151    - [16.5.5.2. Добавление новых действий](https://python-all.ru/3.3/library/optparse.html#adding-new-actions)152- [16.6. `getopt` – C-стиль парсинга параметров командной строки](https://python-all.ru/3.3/library/getopt.html)153- [16.7. `logging` – Средство журналирования для Python](https://python-all.ru/3.3/library/logging.html)154155  - [16.7.1. Объекты регистратора](https://python-all.ru/3.3/library/logging.html#logger-objects)156  - [16.7.2. Уровни журналирования](https://python-all.ru/3.3/library/logging.html#logging-levels)157  - [16.7.3. Объекты обработчика](https://python-all.ru/3.3/library/logging.html#handler-objects)158  - [16.7.4. Объекты форматировщика](https://python-all.ru/3.3/library/logging.html#formatter-objects)159  - [16.7.5. Объекты фильтра](https://python-all.ru/3.3/library/logging.html#filter-objects)160  - [16.7.6. Объекты записи журнала (LogRecord)](https://python-all.ru/3.3/library/logging.html#logrecord-objects)161  - [16.7.7. Атрибуты записи журнала](https://python-all.ru/3.3/library/logging.html#logrecord-attributes)162  - [16.7.8. Объекты LoggerAdapter](https://python-all.ru/3.3/library/logging.html#loggeradapter-objects)163  - [16.7.9. Потокобезопасность](https://python-all.ru/3.3/library/logging.html#thread-safety)164  - [16.7.10. Функции уровня модуля](https://python-all.ru/3.3/library/logging.html#module-level-functions)165  - [16.7.11. Атрибуты уровня модуля](https://python-all.ru/3.3/library/logging.html#module-level-attributes)166  - [16.7.12. Интеграция с модулем warnings](https://python-all.ru/3.3/library/logging.html#integration-with-the-warnings-module)167- [16.8. `logging.config` – Конфигурация журналирования](https://python-all.ru/3.3/library/logging.config.html)168169  - [16.8.1. Функции конфигурации](https://python-all.ru/3.3/library/logging.config.html#configuration-functions)170  - [16.8.2. Схема конфигурационного словаря](https://python-all.ru/3.3/library/logging.config.html#configuration-dictionary-schema)171172    - [16.8.2.1. Подробная схема словаря](https://python-all.ru/3.3/library/logging.config.html#dictionary-schema-details)173    - [16.8.2.2. Инкрементальная настройка](https://python-all.ru/3.3/library/logging.config.html#incremental-configuration)174    - [16.8.2.3. Соединения объектов](https://python-all.ru/3.3/library/logging.config.html#object-connections)175    - [16.8.2.4. Пользовательские объекты](https://python-all.ru/3.3/library/logging.config.html#user-defined-objects)176    - [16.8.2.5. Доступ к внешним объектам](https://python-all.ru/3.3/library/logging.config.html#access-to-external-objects)177    - [16.8.2.6. Доступ к внутренним объектам](https://python-all.ru/3.3/library/logging.config.html#access-to-internal-objects)178    - [16.8.2.7. Разрешение импорта и пользовательские импортёры](https://python-all.ru/3.3/library/logging.config.html#import-resolution-and-custom-importers)179  - [16.8.3. Формат файла конфигурации](https://python-all.ru/3.3/library/logging.config.html#configuration-file-format)180- [16.9. `logging.handlers` – Обработчики логирования](https://python-all.ru/3.3/library/logging.handlers.html)181182  - [16.9.1. StreamHandler](https://python-all.ru/3.3/library/logging.handlers.html#streamhandler)183  - [16.9.2. FileHandler](https://python-all.ru/3.3/library/logging.handlers.html#filehandler)184  - [16.9.3. NullHandler](https://python-all.ru/3.3/library/logging.handlers.html#nullhandler)185  - [16.9.4. WatchedFileHandler](https://python-all.ru/3.3/library/logging.handlers.html#watchedfilehandler)186  - [16.9.5. BaseRotatingHandler](https://python-all.ru/3.3/library/logging.handlers.html#baserotatinghandler)187  - [16.9.6. RotatingFileHandler](https://python-all.ru/3.3/library/logging.handlers.html#rotatingfilehandler)188  - [16.9.7. TimedRotatingFileHandler](https://python-all.ru/3.3/library/logging.handlers.html#timedrotatingfilehandler)189  - [16.9.8. SocketHandler](https://python-all.ru/3.3/library/logging.handlers.html#sockethandler)190  - [16.9.9. DatagramHandler](https://python-all.ru/3.3/library/logging.handlers.html#datagramhandler)191  - [16.9.10. SysLogHandler](https://python-all.ru/3.3/library/logging.handlers.html#sysloghandler)192  - [16.9.11. NTEventLogHandler](https://python-all.ru/3.3/library/logging.handlers.html#nteventloghandler)193  - [16.9.12. SMTPHandler](https://python-all.ru/3.3/library/logging.handlers.html#smtphandler)194  - [16.9.13. MemoryHandler](https://python-all.ru/3.3/library/logging.handlers.html#memoryhandler)195  - [16.9.14. HTTPHandler](https://python-all.ru/3.3/library/logging.handlers.html#httphandler)196  - [16.9.15. QueueHandler](https://python-all.ru/3.3/library/logging.handlers.html#queuehandler)197  - [16.9.16. QueueListener](https://python-all.ru/3.3/library/logging.handlers.html#queuelistener)198- [16.10. `getpass` – Переносимый ввод пароля](https://python-all.ru/3.3/library/getpass.html)199- [16.11. `curses` – Управление терминалом для символьных дисплеев](https://python-all.ru/3.3/library/curses.html)200201  - [16.11.1. Функции](https://python-all.ru/3.3/library/curses.html#functions)202  - [16.11.2. Объекты окон](https://python-all.ru/3.3/library/curses.html#window-objects)203  - [16.11.3. Константы](https://python-all.ru/3.3/library/curses.html#constants)204- [16.12. `curses.textpad` – Виджет ввода текста для программ curses](https://python-all.ru/3.3/library/curses.html#module-curses.textpad)205206  - [16.12.1. Объекты Textbox](https://python-all.ru/3.3/library/curses.html#textbox-objects)207- [16.13. `curses.ascii` – Утилиты для работы с ASCII-символами](https://python-all.ru/3.3/library/curses.ascii.html)208- [16.14. `curses.panel` – расширение стека панелей для curses](https://python-all.ru/3.3/library/curses.panel.html)209210  - [16.14.1. Функции](https://python-all.ru/3.3/library/curses.panel.html#functions)211  - [16.14.2. Объекты панелей](https://python-all.ru/3.3/library/curses.panel.html#panel-objects)212- [16.15. `platform` – доступ к идентификационным данным нижележащей платформы](https://python-all.ru/3.3/library/platform.html)213214  - [16.15.1. Кросс-платформенные](https://python-all.ru/3.3/library/platform.html#cross-platform)215  - [16.15.2. Платформа Java](https://python-all.ru/3.3/library/platform.html#java-platform)216  - [16.15.3. Платформа Windows](https://python-all.ru/3.3/library/platform.html#windows-platform)217218    - [16.15.3.1. Специфичные для Win95/98](https://python-all.ru/3.3/library/platform.html#win95-98-specific)219  - [16.15.4. Платформа Mac OS](https://python-all.ru/3.3/library/platform.html#mac-os-platform)220  - [16.15.5. Платформы Unix](https://python-all.ru/3.3/library/platform.html#unix-platforms)221- [16.16. `errno` – стандартные системные символы errno](https://python-all.ru/3.3/library/errno.html)222- [16.17. `ctypes` – библиотека внешних функций для Python](https://python-all.ru/3.3/library/ctypes.html)223224  - [16.17.1. Учебное пособие по ctypes](https://python-all.ru/3.3/library/ctypes.html#ctypes-tutorial)225226    - [16.17.1.1. Загрузка библиотек динамической компоновки](https://python-all.ru/3.3/library/ctypes.html#loading-dynamic-link-libraries)227    - [16.17.1.2. Доступ к функциям загруженных DLL](https://python-all.ru/3.3/library/ctypes.html#accessing-functions-from-loaded-dlls)228    - [16.17.1.3. Вызов функций](https://python-all.ru/3.3/library/ctypes.html#calling-functions)229    - [16.17.1.4. Основные типы данных](https://python-all.ru/3.3/library/ctypes.html#fundamental-data-types)230    - [16.17.1.5. Вызов функций, продолжение](https://python-all.ru/3.3/library/ctypes.html#calling-functions-continued)231    - [16.17.1.6. Вызов функций с собственными типами данных](https://python-all.ru/3.3/library/ctypes.html#calling-functions-with-your-own-custom-data-types)232    - [16.17.1.7. Задание требуемых типов аргументов (прототипы функций)](https://python-all.ru/3.3/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)233    - [16.17.1.8. Типы возвращаемых значений](https://python-all.ru/3.3/library/ctypes.html#return-types)234    - [16.17.1.9. Передача указателей (или: передача параметров по ссылке)](https://python-all.ru/3.3/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)235    - [16.17.1.10. Структуры и объединения](https://python-all.ru/3.3/library/ctypes.html#structures-and-unions)236    - [16.17.1.11. Выравнивание структур/объединений и порядок байтов](https://python-all.ru/3.3/library/ctypes.html#structure-union-alignment-and-byte-order)237    - [16.17.1.12. Битовые поля в структурах и объединениях](https://python-all.ru/3.3/library/ctypes.html#bit-fields-in-structures-and-unions)238    - [16.17.1.13. Массивы](https://python-all.ru/3.3/library/ctypes.html#arrays)239    - [16.17.1.14. Указатели](https://python-all.ru/3.3/library/ctypes.html#pointers)240    - [16.17.1.15. Преобразования типов](https://python-all.ru/3.3/library/ctypes.html#type-conversions)241    - [16.17.1.16. Неполные типы](https://python-all.ru/3.3/library/ctypes.html#incomplete-types)242    - [16.17.1.17. Функции обратного вызова](https://python-all.ru/3.3/library/ctypes.html#callback-functions)243    - [16.17.1.18. Доступ к значениям, экспортируемым из DLL](https://python-all.ru/3.3/library/ctypes.html#accessing-values-exported-from-dlls)244    - [16.17.1.19. Неожиданности](https://python-all.ru/3.3/library/ctypes.html#surprises)245    - [16.17.1.20. Типы данных переменного размера](https://python-all.ru/3.3/library/ctypes.html#variable-sized-data-types)246  - [16.17.2. Справочник по ctypes](https://python-all.ru/3.3/library/ctypes.html#ctypes-reference)247248    - [16.17.2.1. Поиск разделяемых библиотек](https://python-all.ru/3.3/library/ctypes.html#finding-shared-libraries)249    - [16.17.2.2. Загрузка разделяемых библиотек](https://python-all.ru/3.3/library/ctypes.html#loading-shared-libraries)250    - [16.17.2.3. Внешние функции](https://python-all.ru/3.3/library/ctypes.html#foreign-functions)251    - [16.17.2.4. Прототипы функций](https://python-all.ru/3.3/library/ctypes.html#function-prototypes)252    - [16.17.2.5. Вспомогательные функции](https://python-all.ru/3.3/library/ctypes.html#utility-functions)253    - [16.17.2.6. Типы данных](https://python-all.ru/3.3/library/ctypes.html#data-types)254    - [16.17.2.7. Фундаментальные типы данных](https://python-all.ru/3.3/library/ctypes.html#ctypes-fundamental-data-types-2)255    - [16.17.2.8. Структурированные типы данных](https://python-all.ru/3.3/library/ctypes.html#structured-data-types)256    - [16.17.2.9. Массивы и указатели](https://python-all.ru/3.3/library/ctypes.html#arrays-and-pointers)257