ctypes from_param() truncating 64 bit pointers to 32 bit
joakim.hove at gmail.com
Fri Feb 18 09:29:42 CET 2011
I wonder if I am encountering a bug in ctypes; or if I am doing things
wrong? I have written a small Python class wrapping a C library, the
Python class has a from_param() method which passes a "raw pointer
value" from Python to C. When reaching C the pointer has been
truncated to 32 bits.
I have written a quite extensive post about this on Stackoverflow:
http://www.stackoverflow.com/q/5029341/421889/ - so far without
response. Would have been very glad if anyone could indicate if this
was a bug on my part, or if it is a ctypes bug.
I have tried with Python version 2.4 and 2.6 with identical results.
More information about the Python-list