Ctypes compatibility

Evan Driscoll edriscoll at wisc.edu
Wed Jan 11 21:49:14 EST 2012


On 1/10/2012 22:42, Alec Taylor wrote:
> Use size_t
>
> http://en.wikipedia.org/wiki/C_data_types#Size_and_pointer_difference_types
Um, perhaps you misunderstand. I don't control the C API, I'm calling a
function that just exists in libc (unless I do what I said and write a
wrapper). If you're saying I should use c_size_t on the Python side, I
think that's outright wrong since I think some of the fields in the
dirent struct are 64 bits even on 32-bit systems. (I might be wrong
about that though.)

And even neglecting that, the types of the fields is only part of the
problem.

Evan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 552 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20120111/2fa425b1/attachment.sig>


More information about the Python-list mailing list