sizeof(long) from python

John weekender_ny at yahoo.com
Sun Sep 4 09:43:42 EDT 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