Binary File Editor

garbett at my-deja.com garbett at my-deja.com
Wed Aug 16 14:36:30 EDT 2000


I want to make an editor (in python!) that edits binary files. Most of
the data is long/string/long then a big sequence of raw bytes. The raw
bytes I'm not interested in editing, but maybe switching for a different
set of raw bytes. The files are actually a proprietary collection of wav
files with additional info.

What's the best way to read in one of these files and parse it? Should I
make a lex/yacc parser to python code?
How should the raw binary data be represented in python?
The layout of the file can be thought of as a hierachical collection of
objects, so I'm figuring on reflecting this with python objects.

Just needing a little guidance.

Shawn
garbett at bigfoot.com


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list