Re: structread

2009-10-22 Thread Aahz
In article , Lawrence D'Oliveiro wrote: > >This routine is so useful, I wonder there's nothing like it in module >struct, or anywhere else I'm aware of: > >def structread(fromfile, decode_struct) : >"""reads sufficient

structread

2009-10-20 Thread Lawrence D'Oliveiro
This routine is so useful, I wonder there's nothing like it in module struct, or anywhere else I'm aware of: def structread(fromfile, decode_struct) : """reads sufficient bytes from fromfile to be unpacked according to decode_struct, and ret