Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18862

Re: Ctypes compatibility

Date 2012-01-11 20:49 -0600
From Evan Driscoll <edriscoll@wisc.edu>
Subject Re: Ctypes compatibility
References <4F0CFFFF.80202@wisc.edu> <CAO+9iGd9xf6ZuCQFcNA0C4cRNb3KhojY2P0UKtNh2savUbCcYA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4673.1326336617.27778.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Ctypes compatibility Evan Driscoll <edriscoll@wisc.edu> - 2012-01-11 20:49 -0600

csiph-web