How to represent a sequence of raw bytes

Steven Woody narkewoody at gmail.com
Mon Dec 22 09:52:30 EST 2008


On Mon, Dec 22, 2008 at 6:44 PM, Steven D'Aprano
<steve at remove-this-cybersource.com.au> wrote:
> On Mon, 22 Dec 2008 14:56:45 +0800, Steven Woody wrote:
>
>> The intension is to allocate 200 undefined bytes in memory.
>
> You *want* undefined bytes? Out of curiosity, what do you intend to do
> with them?
>

to receive/send network packets, read raw files, etc.  After read
replies of the thread, I think 'array' or 'struct' maybe what I
wanted, may a plain list can do, but I am not sure.



More information about the Python-list mailing list