How to use a contiguous memory location of n bytes in python

bearophileHUGS at bearophileHUGS at
Fri Nov 14 01:40:56 CET 2008

> I want to know how to instantiate a data structure which has n bytes
> (given by me) and is internally stored in a contiguous fashion.

array.array("B", ...) may be fit for you. You can also use a numpy
array of bytes.


More information about the Python-list mailing list