chachi: > 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. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list