range of int() type.

Felipe Almeida Lessa felipe.lessa at gmail.com
Wed Aug 23 22:02:57 EDT 2006


23 Aug 2006 17:28:48 -0700, KraftDiner <bobrien18 at yahoo.com>:
> This is obvious... but how do I crop off the high order bits if
> necessary?
> a[0]&0xFFFF ?

min(a[0], 0xFFFF) ?

-- 
Felipe.



More information about the Python-list mailing list