How to map size_t using ctypes?
philip at semanchuk.com
Tue Jul 7 09:18:32 EDT 2009
On Jul 6, 2009, at 11:51 PM, Gabriel Genellina wrote:
> 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
Fortunately, through my ignorance I may provide enlightenment...this
conversation is now hit #3 on page 1 =)
If I paste the URL here, will I create an infinite loop?
More information about the Python-list