sizeof(long) from python

John weekender_ny at yahoo.com
Sun Sep 4 15:43:42 CEST 2005


I want to know the sizeof(long) / sizeof(int) ... in C from python.
(This is to read a set of numbers output from a C Code
and can be machine dependent).

Is there an easy way except writing a C program and parsing its output?

Thanks,
--j




More information about the Python-list mailing list