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

allos.md

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

1> **Источник:** https://python-all.ru/2.7/library/allos.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# 15. Общие службы операционной системы89Модули, описанные в этой главе, предоставляют интерфейсы к возможностям операционной системы, доступным (почти) во всех ОС, таким как файлы и часы. Интерфейсы в основном смоделированы по образцу Unix- или C-интерфейсов, но они также доступны и в большинстве других систем. Вот обзор:1011- [15.1. `os` – Различные интерфейсы операционной системы](https://python-all.ru/2.7/library/os.html)1213  - [15.1.1. Параметры процесса](https://python-all.ru/2.7/library/os.html#process-parameters)14  - [15.1.2. Создание файловых объектов](https://python-all.ru/2.7/library/os.html#file-object-creation)15  - [15.1.3. Операции с файловыми дескрипторами](https://python-all.ru/2.7/library/os.html#file-descriptor-operations)1617    - [15.1.3.1. `open()` константы флагов](https://python-all.ru/2.7/library/os.html#open-flag-constants)18  - [15.1.4. Файлы и каталоги](https://python-all.ru/2.7/library/os.html#files-and-directories)19  - [15.1.5. Управление процессами](https://python-all.ru/2.7/library/os.html#process-management)20  - [15.1.6. Различная системная информация](https://python-all.ru/2.7/library/os.html#miscellaneous-system-information)21  - [15.1.7. Разные функции](https://python-all.ru/2.7/library/os.html#miscellaneous-functions)22- [15.2. `io` – Основные инструменты для работы с потоками данных](https://python-all.ru/2.7/library/io.html)2324  - [15.2.1. Интерфейс модуля](https://python-all.ru/2.7/library/io.html#module-interface)25  - [15.2.2. Базовые классы ввода-вывода](https://python-all.ru/2.7/library/io.html#i-o-base-classes)26  - [15.2.3. Низкоуровневый файловый ввод-вывод](https://python-all.ru/2.7/library/io.html#raw-file-i-o)27  - [15.2.4. Буферизованные потоки данных](https://python-all.ru/2.7/library/io.html#buffered-streams)28  - [15.2.5. Текстовый ввод-вывод](https://python-all.ru/2.7/library/io.html#text-i-o)29  - [15.2.6. Продвинутые темы](https://python-all.ru/2.7/library/io.html#advanced-topics)3031    - [15.2.6.1. Производительность](https://python-all.ru/2.7/library/io.html#performance)3233      - [15.2.6.1.1. Двоичный ввод-вывод](https://python-all.ru/2.7/library/io.html#binary-i-o)34      - [15.2.6.1.2. Текстовый ввод-вывод](https://python-all.ru/2.7/library/io.html#id1)35    - [15.2.6.2. Многопоточность](https://python-all.ru/2.7/library/io.html#multi-threading)36    - [15.2.6.3. Реентерабельность](https://python-all.ru/2.7/library/io.html#reentrancy)37- [15.3. `time` – Время и его преобразования](https://python-all.ru/2.7/library/time.html)38- [15.4. `argparse` – Парсер параметров командной строки, аргументов и подкоманд](https://python-all.ru/2.7/library/argparse.html)3940  - [15.4.1. Пример](https://python-all.ru/2.7/library/argparse.html#example)4142    - [15.4.1.1. Создание парсера](https://python-all.ru/2.7/library/argparse.html#creating-a-parser)43    - [15.4.1.2. Добавление аргументов](https://python-all.ru/2.7/library/argparse.html#adding-arguments)44    - [15.4.1.3. Разбор аргументов](https://python-all.ru/2.7/library/argparse.html#parsing-arguments)45  - [15.4.2. Объекты ArgumentParser](https://python-all.ru/2.7/library/argparse.html#argumentparser-objects)4647    - [15.4.2.1. prog](https://python-all.ru/2.7/library/argparse.html#prog)48    - [15.4.2.2. usage](https://python-all.ru/2.7/library/argparse.html#usage)49    - [15.4.2.3. description](https://python-all.ru/2.7/library/argparse.html#description)50    - [15.4.2.4. epilog](https://python-all.ru/2.7/library/argparse.html#epilog)51    - [15.4.2.5. parents](https://python-all.ru/2.7/library/argparse.html#parents)52    - [15.4.2.6. formatter\_class](https://python-all.ru/2.7/library/argparse.html#formatter-class)53    - [15.4.2.7. prefix\_chars](https://python-all.ru/2.7/library/argparse.html#prefix-chars)54    - [15.4.2.8. fromfile\_prefix\_chars](https://python-all.ru/2.7/library/argparse.html#fromfile-prefix-chars)55    - [15.4.2.9. argument\_default](https://python-all.ru/2.7/library/argparse.html#argument-default)56    - [15.4.2.10. conflict\_handler](https://python-all.ru/2.7/library/argparse.html#conflict-handler)57    - [15.4.2.11. add\_help](https://python-all.ru/2.7/library/argparse.html#add-help)58  - [15.4.3. Метод add\_argument()](https://python-all.ru/2.7/library/argparse.html#the-add-argument-method)5960    - [15.4.3.1. name или flags](https://python-all.ru/2.7/library/argparse.html#name-or-flags)61    - [15.4.3.2. action](https://python-all.ru/2.7/library/argparse.html#action)62    - [15.4.3.3. nargs](https://python-all.ru/2.7/library/argparse.html#nargs)63    - [15.4.3.4. const](https://python-all.ru/2.7/library/argparse.html#const)64    - [15.4.3.5. default](https://python-all.ru/2.7/library/argparse.html#default)65    - [15.4.3.6. type](https://python-all.ru/2.7/library/argparse.html#type)66    - [15.4.3.7. choices](https://python-all.ru/2.7/library/argparse.html#choices)67    - [15.4.3.8. required](https://python-all.ru/2.7/library/argparse.html#required)68    - [15.4.3.9. help](https://python-all.ru/2.7/library/argparse.html#help)69    - [15.4.3.10. metavar](https://python-all.ru/2.7/library/argparse.html#metavar)70    - [15.4.3.11. dest](https://python-all.ru/2.7/library/argparse.html#dest)71    - [15.4.3.12. Классы действий](https://python-all.ru/2.7/library/argparse.html#action-classes)72  - [15.4.4. Метод parse\_args()](https://python-all.ru/2.7/library/argparse.html#the-parse-args-method)7374    - [15.4.4.1. Синтаксис значений опций](https://python-all.ru/2.7/library/argparse.html#option-value-syntax)75    - [15.4.4.2. Недопустимые аргументы](https://python-all.ru/2.7/library/argparse.html#invalid-arguments)76    - [15.4.4.3. Аргументы, содержащие `-`](https://python-all.ru/2.7/library/argparse.html#arguments-containing)77    - [15.4.4.4. Сокращения аргументов (префиксное сопоставление)](https://python-all.ru/2.7/library/argparse.html#argument-abbreviations-prefix-matching)78    - [15.4.4.5. Дополнительные возможности `sys.argv`](https://python-all.ru/2.7/library/argparse.html#beyond-sys-argv)79    - [15.4.4.6. Объект Namespace](https://python-all.ru/2.7/library/argparse.html#the-namespace-object)80  - [15.4.5. Другие утилиты](https://python-all.ru/2.7/library/argparse.html#other-utilities)8182    - [15.4.5.1. Подкоманды](https://python-all.ru/2.7/library/argparse.html#sub-commands)83    - [15.4.5.2. Объекты FileType](https://python-all.ru/2.7/library/argparse.html#filetype-objects)84    - [15.4.5.3. Группы аргументов](https://python-all.ru/2.7/library/argparse.html#argument-groups)85    - [15.4.5.4. Взаимное исключение](https://python-all.ru/2.7/library/argparse.html#mutual-exclusion)86    - [15.4.5.5. Значения по умолчанию парсера](https://python-all.ru/2.7/library/argparse.html#parser-defaults)87    - [15.4.5.6. Вывод справки](https://python-all.ru/2.7/library/argparse.html#printing-help)88    - [15.4.5.7. Частичный разбор](https://python-all.ru/2.7/library/argparse.html#partial-parsing)89    - [15.4.5.8. Настройка разбора файлов](https://python-all.ru/2.7/library/argparse.html#customizing-file-parsing)90    - [15.4.5.9. Методы завершения](https://python-all.ru/2.7/library/argparse.html#exiting-methods)91  - [15.4.6. Обновление кода optparse](https://python-all.ru/2.7/library/argparse.html#upgrading-optparse-code)92- [15.5. `optparse` – Парсер аргументов командной строки](https://python-all.ru/2.7/library/optparse.html)9394  - [15.5.1. Общие сведения](https://python-all.ru/2.7/library/optparse.html#background)9596    - [15.5.1.1. Терминология](https://python-all.ru/2.7/library/optparse.html#terminology)97    - [15.5.1.2. Для чего нужны параметры?](https://python-all.ru/2.7/library/optparse.html#what-are-options-for)98    - [15.5.1.3. Для чего нужны позиционные аргументы?](https://python-all.ru/2.7/library/optparse.html#what-are-positional-arguments-for)99  - [15.5.2. Учебное пособие](https://python-all.ru/2.7/library/optparse.html#tutorial)100101    - [15.5.2.1. Действия параметров](https://python-all.ru/2.7/library/optparse.html#understanding-option-actions)102    - [15.5.2.2. Действие store](https://python-all.ru/2.7/library/optparse.html#the-store-action)103    - [15.5.2.3. Обработка булевых (флаговых) параметров](https://python-all.ru/2.7/library/optparse.html#handling-boolean-flag-options)104    - [15.5.2.4. Прочие действия](https://python-all.ru/2.7/library/optparse.html#other-actions)105    - [15.5.2.5. Значения по умолчанию](https://python-all.ru/2.7/library/optparse.html#default-values)106    - [15.5.2.6. Генерация справки](https://python-all.ru/2.7/library/optparse.html#generating-help)107108      - [15.5.2.6.1. Группировка параметров](https://python-all.ru/2.7/library/optparse.html#grouping-options)109    - [15.5.2.7. Вывод строки версии](https://python-all.ru/2.7/library/optparse.html#printing-a-version-string)110    - [15.5.2.8. Как `optparse` обрабатывает ошибки](https://python-all.ru/2.7/library/optparse.html#how-optparse-handles-errors)111    - [15.5.2.9. Собираем всё вместе](https://python-all.ru/2.7/library/optparse.html#putting-it-all-together)112  - [15.5.3. Справочное руководство](https://python-all.ru/2.7/library/optparse.html#reference-guide)113114    - [15.5.3.1. Создание парсера](https://python-all.ru/2.7/library/optparse.html#creating-the-parser)115    - [15.5.3.2. Заполнение парсера](https://python-all.ru/2.7/library/optparse.html#populating-the-parser)116    - [15.5.3.3. Определение параметров](https://python-all.ru/2.7/library/optparse.html#defining-options)117    - [15.5.3.4. Атрибуты параметров](https://python-all.ru/2.7/library/optparse.html#option-attributes)118    - [15.5.3.5. Стандартные действия параметров](https://python-all.ru/2.7/library/optparse.html#standard-option-actions)119    - [15.5.3.6. Стандартные типы параметров](https://python-all.ru/2.7/library/optparse.html#standard-option-types)120    - [15.5.3.7. Разбор аргументов](https://python-all.ru/2.7/library/optparse.html#parsing-arguments)121    - [15.5.3.8. Запросы и изменение парсера параметров](https://python-all.ru/2.7/library/optparse.html#querying-and-manipulating-your-option-parser)122    - [15.5.3.9. Конфликты между параметрами](https://python-all.ru/2.7/library/optparse.html#conflicts-between-options)123    - [15.5.3.10. Очистка](https://python-all.ru/2.7/library/optparse.html#cleanup)124    - [15.5.3.11. Прочие методы](https://python-all.ru/2.7/library/optparse.html#other-methods)125  - [15.5.4. Колбэки параметров](https://python-all.ru/2.7/library/optparse.html#option-callbacks)126127    - [15.5.4.1. Определение параметра-колбэка](https://python-all.ru/2.7/library/optparse.html#defining-a-callback-option)128    - [15.5.4.2. Как вызываются колбэки](https://python-all.ru/2.7/library/optparse.html#how-callbacks-are-called)129    - [15.5.4.3. Возбуждение ошибок в колбэке](https://python-all.ru/2.7/library/optparse.html#raising-errors-in-a-callback)130    - [15.5.4.4. Пример колбэка 1: тривиальный колбэк](https://python-all.ru/2.7/library/optparse.html#callback-example-1-trivial-callback)131    - [15.5.4.5. Пример колбэка 2: проверка порядка опций](https://python-all.ru/2.7/library/optparse.html#callback-example-2-check-option-order)132    - [15.5.4.6. Пример колбэка 3: проверка порядка опций (обобщённая)](https://python-all.ru/2.7/library/optparse.html#callback-example-3-check-option-order-generalized)133    - [15.5.4.7. Пример колбэка 4: проверка произвольного условия](https://python-all.ru/2.7/library/optparse.html#callback-example-4-check-arbitrary-condition)134    - [15.5.4.8. Пример колбэка 5: фиксированные аргументы](https://python-all.ru/2.7/library/optparse.html#callback-example-5-fixed-arguments)135    - [15.5.4.9. Пример колбэка 6: переменные аргументы](https://python-all.ru/2.7/library/optparse.html#callback-example-6-variable-arguments)136  - [15.5.5. Расширение `optparse`](https://python-all.ru/2.7/library/optparse.html#extending-optparse)137138    - [15.5.5.1. Добавление новых типов](https://python-all.ru/2.7/library/optparse.html#adding-new-types)139    - [15.5.5.2. Добавление новых действий](https://python-all.ru/2.7/library/optparse.html#adding-new-actions)140- [15.6. `getopt` – Парсер опций командной строки в стиле C](https://python-all.ru/2.7/library/getopt.html)141- [15.7. `logging` – Средство журналирования для Python](https://python-all.ru/2.7/library/logging.html)142143  - [15.7.1. Объекты Logger](https://python-all.ru/2.7/library/logging.html#logger-objects)144  - [15.7.2. Уровни журналирования](https://python-all.ru/2.7/library/logging.html#logging-levels)145  - [15.7.3. Объекты обработчиков](https://python-all.ru/2.7/library/logging.html#handler-objects)146  - [15.7.4. Объекты форматирования](https://python-all.ru/2.7/library/logging.html#formatter-objects)147  - [15.7.5. Объекты фильтрации](https://python-all.ru/2.7/library/logging.html#filter-objects)148  - [15.7.6. Объекты LogRecord](https://python-all.ru/2.7/library/logging.html#logrecord-objects)149  - [15.7.7. Атрибуты LogRecord](https://python-all.ru/2.7/library/logging.html#logrecord-attributes)150  - [15.7.8. Объекты LoggerAdapter](https://python-all.ru/2.7/library/logging.html#loggeradapter-objects)151  - [15.7.9. Потокобезопасность](https://python-all.ru/2.7/library/logging.html#thread-safety)152  - [15.7.10. Функции уровня модуля](https://python-all.ru/2.7/library/logging.html#module-level-functions)153  - [15.7.11. Интеграция с модулем warnings](https://python-all.ru/2.7/library/logging.html#integration-with-the-warnings-module)154- [15.8. `logging.config` – Конфигурация журналирования](https://python-all.ru/2.7/library/logging.config.html)155156  - [15.8.1. Функции конфигурации](https://python-all.ru/2.7/library/logging.config.html#configuration-functions)157  - [15.8.2. Схема словаря конфигурации](https://python-all.ru/2.7/library/logging.config.html#configuration-dictionary-schema)158159    - [15.8.2.1. Подробности схемы словаря](https://python-all.ru/2.7/library/logging.config.html#dictionary-schema-details)160    - [15.8.2.2. Инкрементальная конфигурация](https://python-all.ru/2.7/library/logging.config.html#incremental-configuration)161    - [15.8.2.3. Связи объектов](https://python-all.ru/2.7/library/logging.config.html#object-connections)162    - [15.8.2.4. Определяемые пользователем объекты](https://python-all.ru/2.7/library/logging.config.html#user-defined-objects)163    - [15.8.2.5. Доступ к внешним объектам](https://python-all.ru/2.7/library/logging.config.html#access-to-external-objects)164    - [15.8.2.6. Доступ к внутренним объектам](https://python-all.ru/2.7/library/logging.config.html#access-to-internal-objects)165    - [15.8.2.7. Разрешение импорта и пользовательские импортёры](https://python-all.ru/2.7/library/logging.config.html#import-resolution-and-custom-importers)166  - [15.8.3. Формат конфигурационного файла](https://python-all.ru/2.7/library/logging.config.html#configuration-file-format)167- [15.9. `logging.handlers` – Обработчики журналирования](https://python-all.ru/2.7/library/logging.handlers.html)168169  - [15.9.1. StreamHandler](https://python-all.ru/2.7/library/logging.handlers.html#streamhandler)170  - [15.9.2. FileHandler](https://python-all.ru/2.7/library/logging.handlers.html#filehandler)171  - [15.9.3. NullHandler](https://python-all.ru/2.7/library/logging.handlers.html#nullhandler)172  - [15.9.4. WatchedFileHandler](https://python-all.ru/2.7/library/logging.handlers.html#watchedfilehandler)173  - [15.9.5. RotatingFileHandler](https://python-all.ru/2.7/library/logging.handlers.html#rotatingfilehandler)174  - [15.9.6. TimedRotatingFileHandler](https://python-all.ru/2.7/library/logging.handlers.html#timedrotatingfilehandler)175  - [15.9.7. SocketHandler](https://python-all.ru/2.7/library/logging.handlers.html#sockethandler)176  - [15.9.8. DatagramHandler](https://python-all.ru/2.7/library/logging.handlers.html#datagramhandler)177  - [15.9.9. SysLogHandler](https://python-all.ru/2.7/library/logging.handlers.html#sysloghandler)178  - [15.9.10. NTEventLogHandler](https://python-all.ru/2.7/library/logging.handlers.html#nteventloghandler)179  - [15.9.11. SMTPHandler](https://python-all.ru/2.7/library/logging.handlers.html#smtphandler)180  - [15.9.12. MemoryHandler](https://python-all.ru/2.7/library/logging.handlers.html#memoryhandler)181  - [15.9.13. HTTPHandler](https://python-all.ru/2.7/library/logging.handlers.html#httphandler)182- [15.10. `getpass` – Переносимый ввод пароля](https://python-all.ru/2.7/library/getpass.html)183- [15.11. `curses` – Управление терминалом для символьных дисплеев](https://python-all.ru/2.7/library/curses.html)184185  - [15.11.1. Функции](https://python-all.ru/2.7/library/curses.html#functions)186  - [15.11.2. Объекты окон](https://python-all.ru/2.7/library/curses.html#window-objects)187  - [15.11.3. Константы](https://python-all.ru/2.7/library/curses.html#constants)188- [15.12. `curses.textpad` – Виджет ввода текста для программ с curses](https://python-all.ru/2.7/library/curses.html#module-curses.textpad)189190  - [15.12.1. Объекты Textbox](https://python-all.ru/2.7/library/curses.html#textbox-objects)191- [15.13. `curses.ascii` – Утилиты для символов ASCII](https://python-all.ru/2.7/library/curses.ascii.html)192- [15.14. `curses.panel` – Расширение стека панелей для curses](https://python-all.ru/2.7/library/curses.panel.html)193194  - [15.14.1. Функции](https://python-all.ru/2.7/library/curses.panel.html#functions)195  - [15.14.2. Объекты панелей](https://python-all.ru/2.7/library/curses.panel.html#panel-objects)196- [15.15. `platform` – Доступ к идентификационным данным нижележащей платформы](https://python-all.ru/2.7/library/platform.html)197198  - [15.15.1. Кроссплатформенные](https://python-all.ru/2.7/library/platform.html#cross-platform)199  - [15.15.2. Платформа Java](https://python-all.ru/2.7/library/platform.html#java-platform)200  - [15.15.3. Платформа Windows](https://python-all.ru/2.7/library/platform.html#windows-platform)201202    - [15.15.3.1. Особенности Win95/98](https://python-all.ru/2.7/library/platform.html#win95-98-specific)203  - [15.15.4. Платформа Mac OS](https://python-all.ru/2.7/library/platform.html#mac-os-platform)204  - [15.15.5. Платформы Unix](https://python-all.ru/2.7/library/platform.html#unix-platforms)205- [15.16. `errno` – Стандартные системные символы errno](https://python-all.ru/2.7/library/errno.html)206- [15.17. `ctypes` – Библиотека внешних функций для Python](https://python-all.ru/2.7/library/ctypes.html)207208  - [15.17.1. Руководство по ctypes](https://python-all.ru/2.7/library/ctypes.html#ctypes-tutorial)209210    - [15.17.1.1. Загрузка динамически подключаемых библиотек](https://python-all.ru/2.7/library/ctypes.html#loading-dynamic-link-libraries)211    - [15.17.1.2. Доступ к функциям из загруженных DLL](https://python-all.ru/2.7/library/ctypes.html#accessing-functions-from-loaded-dlls)212    - [15.17.1.3. Вызов функций](https://python-all.ru/2.7/library/ctypes.html#calling-functions)213    - [15.17.1.4. Базовые типы данных](https://python-all.ru/2.7/library/ctypes.html#fundamental-data-types)214    - [15.17.1.5. Вызов функций (продолжение)](https://python-all.ru/2.7/library/ctypes.html#calling-functions-continued)215    - [15.17.1.6. Вызов функций с собственными пользовательскими типами данных](https://python-all.ru/2.7/library/ctypes.html#calling-functions-with-your-own-custom-data-types)216    - [15.17.1.7. Указание требуемых типов аргументов (прототипы функций)](https://python-all.ru/2.7/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)217    - [15.17.1.8. Типы возвращаемых значений](https://python-all.ru/2.7/library/ctypes.html#return-types)218    - [15.17.1.9. Передача указателей (или передача параметров по ссылке)](https://python-all.ru/2.7/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)219    - [15.17.1.10. Структуры и объединения](https://python-all.ru/2.7/library/ctypes.html#structures-and-unions)220    - [15.17.1.11. Выравнивание структур/объединений и порядок байтов](https://python-all.ru/2.7/library/ctypes.html#structure-union-alignment-and-byte-order)221    - [15.17.1.12. Битовые поля в структурах и объединениях](https://python-all.ru/2.7/library/ctypes.html#bit-fields-in-structures-and-unions)222    - [15.17.1.13. Массивы](https://python-all.ru/2.7/library/ctypes.html#arrays)223    - [15.17.1.14. Указатели](https://python-all.ru/2.7/library/ctypes.html#pointers)224    - [15.17.1.15. Преобразования типов](https://python-all.ru/2.7/library/ctypes.html#type-conversions)225    - [15.17.1.16. Неполные типы](https://python-all.ru/2.7/library/ctypes.html#incomplete-types)226    - [15.17.1.17. Функции обратного вызова](https://python-all.ru/2.7/library/ctypes.html#callback-functions)227    - [15.17.1.18. Доступ к значениям, экспортируемым из DLL](https://python-all.ru/2.7/library/ctypes.html#accessing-values-exported-from-dlls)228    - [15.17.1.19. Неожиданности](https://python-all.ru/2.7/library/ctypes.html#surprises)229    - [15.17.1.20. Типы данных переменного размера](https://python-all.ru/2.7/library/ctypes.html#variable-sized-data-types)230  - [15.17.2. Справочник по ctypes](https://python-all.ru/2.7/library/ctypes.html#ctypes-reference)231232    - [15.17.2.1. Поиск разделяемых библиотек](https://python-all.ru/2.7/library/ctypes.html#finding-shared-libraries)233    - [15.17.2.2. Загрузка разделяемых библиотек](https://python-all.ru/2.7/library/ctypes.html#loading-shared-libraries)234    - [15.17.2.3. Внешние функции](https://python-all.ru/2.7/library/ctypes.html#foreign-functions)235    - [15.17.2.4. Прототипы функций](https://python-all.ru/2.7/library/ctypes.html#function-prototypes)236    - [15.17.2.5. Вспомогательные функции](https://python-all.ru/2.7/library/ctypes.html#utility-functions)237    - [15.17.2.6. Типы данных](https://python-all.ru/2.7/library/ctypes.html#data-types)238    - [15.17.2.7. Базовые типы данных](https://python-all.ru/2.7/library/ctypes.html#ctypes-fundamental-data-types-2)239    - [15.17.2.8. Структурированные типы данных](https://python-all.ru/2.7/library/ctypes.html#structured-data-types)240    - [15.17.2.9. Массивы и указатели](https://python-all.ru/2.7/library/ctypes.html#arrays-and-pointers)241