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

2008-11-14 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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. The mmap

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

2008-11-14 Thread Aaron Brady
On Nov 13, 6:40 pm, [EMAIL PROTECTED] wrote: > 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, > b

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

2008-11-13 Thread bearophileHUGS
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-lis

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

2008-11-13 Thread chachi
Hi, 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. I know list is not implemented like this, so I am in a fix. There seems to be a buffer object available, but haven't seen it being used anywhere. Does anyone kno