"Allen Fowler" <[EMAIL PROTECTED]> wrote

> That being said, what is the correct way to parse binary files in 
> Python?

The safest way is to open in binary mode and use read() to get the 
data
then use the struct module to decode the data into python objects.
There is a very basic intro to this at the end of my file handling 
topic
in my tutorial.

-- 
Alan Gauld
Author of the Learn to Program web site
Temorarily at:
http://uk.geocities.com/[EMAIL PROTECTED]/
Normally:
http://www.freenetpages.co.uk/hp/alan.gauld 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to