how many bytes in an int

Grant Edwards grante at visi.com
Mon Aug 9 00:09:18 EDT 2004


On 2004-08-09, Reid Nichol <rnichol_rrc at yahoo.com> wrote:

>    I was wondering if I could control how many bytes are in an int and 
> the byte order.  In C/C++ I can use int32 but how do I do this in 
> python?  How can I control byte order?

I suspect you want to use the "struct" module -- but it's a
guess, since you haven't really said what it is you're trying
to accomplish.

-- 
Grant Edwards                   grante             Yow!  My polyvinyl cowboy
                                  at               wallet was made in Hong
                               visi.com            Kong by Montgomery Clift!



More information about the Python-list mailing list