Layanan Sistem Operasi Generik¶
Modul yang dijelaskan dalam bab ini menyediakan antarmuka untuk fitur sistem operasi yang tersedia pada (hampir) semua sistem operasi, seperti file dan jam. Antarmuka umumnya dimodelkan setelah antarmuka Unix atau C, tetapi mereka tersedia di sebagian besar sistem lain juga. Berikut ini ikhtisar:
os
--- Miscellaneous operating system interfacesio
--- Core tools for working with streamstime
--- Time access and conversionslogging
--- Logging facility for Pythonlogging.config
--- Logging configurationlogging.handlers
--- Logging handlersplatform
--- Access to underlying platform's identifying dataerrno
--- Standard errno system symbolsctypes
--- A foreign function library for Python- ctypes tutorial
- Loading dynamic link libraries
- Accessing functions from loaded dlls
- Calling functions
- Fundamental data types
- Calling functions, continued
- Calling variadic functions
- Calling functions with your own custom data types
- Specifying the required argument types (function prototypes)
- Tipe kembalian
- Passing pointers (or: passing parameters by reference)
- Structures and unions
- Structure/union alignment and byte order
- Bit fields in structures and unions
- Arrays
- Penunjuk Pointers
- Type conversions
- Incomplete Types
- Callback functions
- Accessing values exported from dlls
- Surprises
- Variable-sized data types
- ctypes reference
- ctypes tutorial