Dealing with binary data...

Thomas A. Bryan tbryan at python.net
Sat Mar 11 23:49:50 EST 2000


Robert Kern wrote:
> 
> In article <38C1458D.4F0DBD24 at python.net>,
>         "Thomas A. Bryan" <tbryan at python.net> writes:
> > I'm trying to work with a data file format defined by Fortran programmers.
> 
> See the bottom of this page:
> 
> http://starship.python.net/crew/hinsen/scientific.html

Thanks.  Tim Peters pointed out that the bit value I specified isn't
a legal IEEE float.  Thus, to handle the file reading correctly, I have 
to unpack it twice...first as a pair of integers to check for that bit 
pattern and then as a float.

---Tom



More information about the Python-list mailing list