From 7d0139a2483bdd68811de8669daac07e9fd8d125 Mon Sep 17 00:00:00 2001 From: aaron Date: Sun, 1 Nov 2015 08:41:27 -0600 Subject: [PATCH] Modified ctypes entry for clarity --- docs/scenarios/clibs.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/scenarios/clibs.rst b/docs/scenarios/clibs.rst index 5d20fa4..3f92627 100644 --- a/docs/scenarios/clibs.rst +++ b/docs/scenarios/clibs.rst @@ -5,18 +5,18 @@ Interfacing with C/C++ Libraries ctypes ------ -`ctypes `_ is the de facto -library for interfacing with C/C++, and it provides not only full access to -the native C interface of most major operating systems (e.g., kernel32 on -Windows, or libc on *nix), but also provides support for loading and -interfacing with dynamic libraries, such as DLLs or shared objects at runtime. -It does bring along with it a whole host of types for interacting with system -APIs, and allows you to rather easily define your own complex types, such -as structs and unions, and allows you to modify things such as padding and -alignment, if needed. It can be a bit crufty to use, but in conjunction with -the `struct `_ module, you -are essentially provided full control over how your data types get translated -into something usable by a pure C(++) method. +`ctypes `_ is the CPython +included library for interfacing with C/C++, and it provides not only full +access to the native C interface of most major operating systems (e.g., +kernel32 on Windows, or libc on *nix), but also provides support for loading +and interfacing with dynamic libraries, such as DLLs or shared objects at +runtime. It does bring along with it a whole host of types for interacting +with system APIs, and allows you to rather easily define your own complex +types, such as structs and unions, and allows you to modify things such as +padding and alignment, if needed. It can be a bit crufty to use, but in +conjunction with the `struct `_ +module, you are essentially provided full control over how your data types get +translated into something something usable by a C(++). Struct Equivalents ~~~~~~~~~~~~~~~~~~