I am trying to figure out how to rewrite the following chunk of code
in Python:
C source
[code]
typedef struct PF
{
int flags;
long user;
char*filename;
unsigned char buffer[MAXBUFFERSIZE];
} PF;
typedef BLOCK
{
PF * packdata;
} BLOCK;
BLOCK* blocks;
[/code]
My first idea was to creat
On Jul 10, 5:05 am, Bruno Desthuilliers wrote:
> Mmm... We can't tell for sure since we have no use case, but I'm not
> sure that the OP wants an immutable object here.
>
> > or an `array.array`.
>
> or a StringIO.
>
> > And is `BLOCK`
> > really just a structure with *one* member? Looks a bit o