Long int to int

Emile van Sebille emile at fenx.com
Mon Feb 11 06:49:25 EST 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