@@ -5,18 +5,18 @@ Interfacing with C/C++ Libraries
55ctypes
66------
77
8- `ctypes <https://docs.python.org/3/library/ctypes.html >`_ is the de facto
9- library for interfacing with C/C++, and it provides not only full access to
10- the native C interface of most major operating systems (e.g., kernel32 on
11- Windows, or libc on *nix), but also provides support for loading and
12- interfacing with dynamic libraries, such as DLLs or shared objects at runtime.
13- It does bring along with it a whole host of types for interacting with system
14- APIs, and allows you to rather easily define your own complex types, such
15- as structs and unions, and allows you to modify things such as padding and
16- alignment, if needed. It can be a bit crufty to use, but in conjunction with
17- the `struct <https://docs.python.org/3.5/library/struct.html>`_ module, you
18- are essentially provided full control over how your data types get translated
19- into something usable by a pure C(++) method .
8+ `ctypes <https://docs.python.org/3/library/ctypes.html >`_ is the CPython
9+ included library for interfacing with C/C++, and it provides not only full
10+ access to the native C interface of most major operating systems (e.g.,
11+ kernel32 on Windows, or libc on *nix), but also provides support for loading
12+ and interfacing with dynamic libraries, such as DLLs or shared objects at
13+ runtime. It does bring along with it a whole host of types for interacting
14+ with system APIs, and allows you to rather easily define your own complex
15+ types, such as structs and unions, and allows you to modify things such as
16+ padding and alignment, if needed. It can be a bit crufty to use, but in
17+ conjunction with the `struct <https://docs.python.org/3.5/library/struct.html>`_
18+ module, you are essentially provided full control over how your data types get
19+ translated into something something usable by a C(++).
2020
2121Struct Equivalents
2222~~~~~~~~~~~~~~~~~~
0 commit comments