Re: structread

2009-10-22 Thread Aahz
In article hbk4p5$u...@lust.ihug.co.nz, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand 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 bytes from

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 returns the unpacked results