@@ -197,11 +197,11 @@ argument values::
197197There are, however, enough ways to crash Python with ``ctypes ``, so you should
198198be careful anyway.
199199
200- ``None ``, integers, longs, byte strings and unicode strings are the only native
200+ ``None ``, integers, byte strings and unicode strings are the only native
201201Python objects that can directly be used as parameters in these function calls.
202202``None `` is passed as a C ``NULL `` pointer, byte strings and unicode strings are
203203passed as pointer to the memory block that contains their data (``char * `` or
204- ``wchar_t * ``). Python integers and Python longs are passed as the platforms
204+ ``wchar_t * ``). Python integers are passed as the platforms
205205default C ``int `` type, their value is masked to fit into the C type.
206206
207207Before we move on calling functions with other parameter types, we have to learn
@@ -222,25 +222,25 @@ Fundamental data types
222222 +----------------------+--------------------------------+----------------------------+
223223 | :class: `c_wchar ` | ``wchar_t `` | 1-character unicode string |
224224 +----------------------+--------------------------------+----------------------------+
225- | :class: `c_byte ` | ``char `` | int/long |
225+ | :class: `c_byte ` | ``char `` | int |
226226 +----------------------+--------------------------------+----------------------------+
227- | :class: `c_ubyte ` | ``unsigned char `` | int/long |
227+ | :class: `c_ubyte ` | ``unsigned char `` | int |
228228 +----------------------+--------------------------------+----------------------------+
229- | :class: `c_short ` | ``short `` | int/long |
229+ | :class: `c_short ` | ``short `` | int |
230230 +----------------------+--------------------------------+----------------------------+
231- | :class: `c_ushort ` | ``unsigned short `` | int/long |
231+ | :class: `c_ushort ` | ``unsigned short `` | int |
232232 +----------------------+--------------------------------+----------------------------+
233- | :class: `c_int ` | ``int `` | int/long |
233+ | :class: `c_int ` | ``int `` | int |
234234 +----------------------+--------------------------------+----------------------------+
235- | :class: `c_uint ` | ``unsigned int `` | int/long |
235+ | :class: `c_uint ` | ``unsigned int `` | int |
236236 +----------------------+--------------------------------+----------------------------+
237- | :class: `c_long ` | ``long `` | int/long |
237+ | :class: `c_long ` | ``long `` | int |
238238 +----------------------+--------------------------------+----------------------------+
239- | :class: `c_ulong ` | ``unsigned long `` | int/long |
239+ | :class: `c_ulong ` | ``unsigned long `` | int |
240240 +----------------------+--------------------------------+----------------------------+
241- | :class: `c_longlong ` | ``__int64 `` or ``long long `` | int/long |
241+ | :class: `c_longlong ` | ``__int64 `` or ``long long `` | int |
242242 +----------------------+--------------------------------+----------------------------+
243- | :class: `c_ulonglong ` | ``unsigned __int64 `` or | int/long |
243+ | :class: `c_ulonglong ` | ``unsigned __int64 `` or | int |
244244 | | ``unsigned long long `` | |
245245 +----------------------+--------------------------------+----------------------------+
246246 | :class: `c_float ` | ``float `` | float |
@@ -253,7 +253,7 @@ Fundamental data types
253253 +----------------------+--------------------------------+----------------------------+
254254 | :class: `c_wchar_p ` | ``wchar_t * `` (NUL terminated) | unicode or ``None `` |
255255 +----------------------+--------------------------------+----------------------------+
256- | :class: `c_void_p ` | ``void * `` | int/long or ``None `` |
256+ | :class: `c_void_p ` | ``void * `` | int or ``None `` |
257257 +----------------------+--------------------------------+----------------------------+
258258
259259
0 commit comments