Arrays

Python doesn't natively have arrays comparable to those in lots of other languages. For using this type of data collection, you can use

import array

# efficient array of short ints
buf=array.array('h',[1,2,3,4,5])

#show contents of buf
buf