By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,550 Members | 1,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,550 IT Pros & Developers. It's quick & easy.

sizeof(long) from python

P: n/a

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

Sep 4 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Take a look at the struct module
(http://docs.python.org/lib/module-struct.html), it does what you want.

Sep 4 '05 #2

P: n/a
Thanks a lot, That solved my problem.
--j

Sep 4 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.