range of int() type.

Terry Reedy tjreedy at udel.edu
Wed Aug 23 18:36:33 EDT 2006


"KraftDiner" <bobrien18 at yahoo.com> wrote in message 
news:1156370039.116224.154430 at 75g2000cwc.googlegroups.com...
>
> So what type / class should one use to represent a 16 bit integers
> (signed or unsigned)?

For most purposes, Python just has integers, with 'small' ones (depending 
on the machine) handled more efficiently.  For special purposes, you may 
want to use the array or struct modules.

tjr






More information about the Python-list mailing list