Skip to content

Reading binary data in Python

December 21, 2009

I’ve been searching around a bit – I think I might need to use the ‘struct’ module to interpret strings as packed binary data:

Python 2.6.4 documentation: struct

Also, it looks like I’ll have to sometimes read in bits, I might want to look at BitString, which looks like it allows more control.

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: