Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18862
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <edriscoll@wisc.edu> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'bits': 0.07; 'python': 0.08; '32-bit': 0.09; 'content-type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'size_t': 0.09; 'struct': 0.09; 'content-type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'libc': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'exists': 0.18; 'cc:no real name:2**0': 0.20; 'header:In-Reply- To:1': 0.22; 'systems.': 0.23; 'cc:2**0': 0.24; 'saying': 0.26; "i'm": 0.26; 'function': 0.27; 'cc:addr:python.org': 0.29; 'url:wiki': 0.29; '(unless': 0.30; 'header:User-Agent:1': 0.33; 'that,': 0.33; 'calling': 0.34; 'problem.': 0.36; 'received:192': 0.37; 'think': 0.37; 'received:128': 0.37; 'some': 0.38; 'received:192.168.0': 0.38; 'url:en': 0.39; 'url:org': 0.39; 'should': 0.39; 'might': 0.40; 'received:192.168': 0.40; 'types': 0.61; 'taylor': 0.67 |
| Date | Wed, 11 Jan 2012 20:49:14 -0600 |
| From | Evan Driscoll <edriscoll@wisc.edu> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
| MIME-Version | 1.0 |
| To | Alec Taylor <alec.taylor6@gmail.com> |
| Subject | Re: Ctypes compatibility |
| References | <4F0CFFFF.80202@wisc.edu> <CAO+9iGd9xf6ZuCQFcNA0C4cRNb3KhojY2P0UKtNh2savUbCcYA@mail.gmail.com> |
| In-Reply-To | <CAO+9iGd9xf6ZuCQFcNA0C4cRNb3KhojY2P0UKtNh2savUbCcYA@mail.gmail.com> |
| X-Enigmail-Version | 1.3.4 |
| Content-Type | multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFBC43C08FA5429B3E40ECD8C" |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4673.1326336617.27778.python-list@python.org> (permalink) |
| Lines | 43 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1326336617 news.xs4all.nl 6886 [2001:888:2000:d::a6]:53362 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18862 |
Show key headers only | 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
Re: Ctypes compatibility Evan Driscoll <edriscoll@wisc.edu> - 2012-01-11 20:49 -0600
csiph-web