How to map size_t using ctypes?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Jul 6 23:51:09 EDT 2009


En Mon, 06 Jul 2009 13:29:21 -0300, Philip Semanchuk
<philip at semanchuk.com> escribió:
> On Jul 6, 2009, at 12:10 PM, Diez B. Roggisch wrote:
>> Philip Semanchuk wrote:
>>
>>> I can't figure out how to map a C variable of size_t via Python's
>>> ctypes module.
>>
>> from ctypes import c_size_t
>
> D'oh! [slaps forehead]
>
> That will teach me to RTFM. [...] You'd be surprised at the amount of  
> Googling I did without learning this on my own.

Yep, seems like these terms in particular are hard to find. Searching for
+ctypes +size_t, the first "good" result comes only at page 3. Bad luck...
:(

-- 
Gabriel Genellina




More information about the Python-list mailing list