does python could support sequence of short or int?

momobear wgwigw at gmail.com
Thu Mar 30 21:43:41 EST 2006


thanks for help. formerly I only know to use the struct like bellow:
>>> unpack('hhl', '\x00\x01\x00\x02\x00\x00\x00\x03')
Great, python can work like this:
>>> l = list(struct.unpack('h'*(len(s)/2), s))
I will try to use the numarray also
>>>there are some good exensions for Python,
>>>numarray and numpy and so on ... 
>>>(http://numeric.scipy.org/)




More information about the Python-list mailing list