[issue35562] Issue in sizeof() function

2018-12-22 Thread Amir Aslan Haghrah
Amir Aslan Haghrah added the comment: Thank you for your response. I noticed this issue while working with 'mmap' and memory sharing. As you said I check it in 'C++' and I got the same result for my struct as Python. ---

[issue35562] Issue in sizeof() function

2018-12-22 Thread Amir Aslan Haghrah
New submission from Amir Aslan Haghrah : If you define a structure which contains an 'c_int' and a 'c_double' member. Then run the sizeof() function for it you get 16 as result as follows: - from ctypes import c_int from ctypes