Long int to int

Emile van Sebille emile at fenx.com
Mon Feb 11 12:49:25 CET 2002


"Tim Howarth":
> 0xFFFFFFFFL
> to become
> -1

Numeric has:

>>> Numeric.fromstring('\377\377\377\377',1,'i')
array([-1],'i')

-- 

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list