@@ -28,18 +28,18 @@ ABI Interaction
28
28
ctypes
29
29
------
30
30
31
- `ctypes <https://docs.python.org/3/library/ctypes.html >`_ is the CPython
32
- included library for interfacing with C/C++, and it provides not only full
33
- access to the native C interface of most major operating systems (e.g.,
34
- kernel32 on Windows, or libc on *nix), but also provides support for loading
31
+ `ctypes <https://docs.python.org/3/library/ctypes.html >`_ is the de facto
32
+ library for interfacing with C/C++ from CPython , and it provides not only
33
+ full access to the native C interface of most major operating systems (e.g.,
34
+ kernel32 on Windows, or libc on \ * nix), but also provides support for loading
35
35
and interfacing with dynamic libraries, such as DLLs or shared objects at
36
36
runtime. It does bring along with it a whole host of types for interacting
37
37
with system APIs, and allows you to rather easily define your own complex
38
38
types, such as structs and unions, and allows you to modify things such as
39
39
padding and alignment, if needed. It can be a bit crufty to use, but in
40
40
conjunction with the `struct <https://docs.python.org/3.5/library/struct.html >`_
41
41
module, you are essentially provided full control over how your data types get
42
- translated into something something usable by a C(++).
42
+ translated into something something usable by a pure C(++) method .
43
43
44
44
Struct Equivalents
45
45
~~~~~~~~~~~~~~~~~~
0 commit comments