850
ctypes --- A foreign function library for Python
...........................................................................................................
850
ctypes tutorial ..................................................................................................................................................................
850
Loading dynamic link libraries
....................................................................................................................................
850
Accessing functions from loaded dlls
..........................................................................................................................
850
Calling functions
.......................................................................................................................................................
850
Fundamental data types
............................................................................................................................................
850
Calling functions, continued
.......................................................................................................................................
850
Calling functions with your own custom data types
.......................................................................................................
850
Specifying the required argument types (function prototypes)
........................................................................................
850
Return types
............................................................................................................................................................
850
Passing pointers (or: passing parameters by reference)
................................................................................................
850
Structures and unions
...............................................................................................................................................
850
Structure/union alignment and byte order
....................................................................................................................
850
Bit fields in structures and unions
...............................................................................................................................
850
Arrays
.....................................................................................................................................................................
850
Pointers
...................................................................................................................................................................
850
Type conversions
......................................................................................................................................................
850
Incomplete Types
.....................................................................................................................................................
850
Callback functions
....................................................................................................................................................
850
Accessing values exported from dlls
...........................................................................................................................
850
Surprises
.................................................................................................................................................................
850
Variable-sized data types
...........................................................................................................................................
850
ctypes reference .............................................................................................................................................................
850
Finding shared libraries
.............................................................................................................................................
850
Loading shared libraries
............................................................................................................................................
850
Foreign functions
......................................................................................................................................................
850
Function prototypes
..................................................................................................................................................
850
Utility functions
.........................................................................................................................................................
850
Data types
...............................................................................................................................................................
850
Fundamental data types
............................................................................................................................................
850
Structured data types
................................................................................................................................................
850
Arrays and pointers
...................................................................................................................................................
877
Optional Operating System Services
.............................................................................................................................
878
select --- Waiting for I/O completion
.............................................................................................................................
878
Edge and Level Trigger Polling (epoll) Objects ...............................................................................................................
878
Polling Objects ...............................................................................................................................................................
878
Kqueue Objects ..............................................................................................................................................................
878
Kevent Objects ...............................................................................................................................................................
883
threading --- Higher-level threading interface
.............................................................................................................
883
Thread Objects ...............................................................................................................................................................
883
Lock Objects ...................................................................................................................................................................
883
RLock Objects ................................................................................................................................................................
883
Condition Objects ...........................................................................................................................................................
883
Semaphore Objects ........................................................................................................................................................
883
Semaphore Example
.................................................................................................................................................
883
Event Objects .................................................................................................................................................................
883
Timer Objects .................................................................................................................................................................
883
Using locks, conditions, and semaphores in the with statement .....................................................................................
883
Importing in threaded code .............................................................................................................................................
892
thread --- Multiple threads of control
.............................................................................................................................
894
dummy_threading --- Drop-in replacement for the threading module
..................................................................