parse binary file in python?

Miki Tebeka miki.tebeka at zoran.com
Mon Jan 19 02:13:05 EST 2004


Hello Andreas,

> I want to parse a binary file in python. Does
> python have some built in methods for doing this easily?
Apart from struct and array module already suggested if you want
specific structures I recommend reading them in C and exposing the
interface using swig.

This way you can access structure members by name and not by offset.

HTH.
Miki



More information about the Python-list mailing list