Message71196
Confirmed in HEAD for Python 2.6 and 3.0, on Linux.
Python 2.6b2+ (trunk:65708, Aug 16 2008, 15:04:13)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Python 3.0b2+ (py3k:65708, Aug 16 2008, 15:09:19)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
I was also able to simplify the test case. I get this issue just using
one c_short and one c_long, with nonstandard bit lengths. eg:
fields = [('a', c_short, 16), ('b', c_long, 16)]
(sizeof(c_short) == 2 and sizeof(c_long) == 4).
But it's somewhat sporadic under which conditions it happens and which
it doesn't.
One might imagine this was a simple calculation. But the _ctypes module
is so big (5000 lines of C); at an initial glance I can't find the code
responsible! Any hints? (Modules/_ctypes/ctypes.c presumably is where
this takes place). |
|
Date |
User |
Action |
Args |
2008-08-16 05:56:42 | mgiuca | set | recipients:
+ mgiuca, theller, tim.maxwell |
2008-08-16 05:56:41 | mgiuca | set | messageid: <1218866201.77.0.912368200713.issue3547@psf.upfronthosting.co.za> |
2008-08-16 05:56:40 | mgiuca | link | issue3547 messages |
2008-08-16 05:56:39 | mgiuca | create | |
|