Python Bitstream implementations

Posted by Danielb on Stack Overflow See other posts from Stack Overflow or by Danielb
Published on 2010-03-15T20:22:37Z Indexed on 2010/03/15 20:29 UTC
Read the original article Hit count: 337

Filed under:
|

I am writing a huffman implementation in Python as a learning exercise. I have got to the point of writing out my variable length huffman codes to a buffer (or file). Only to find there does not seem to be a bitstream class implemented by Python! I have had a look at the array and struct modules but they do not seem to do what I need without extra work.

A bit of goggling turned up this bitstream implementation, which is more like what I am wanting. Is there really no comparable bitstream class in the Python standard library?

© Stack Overflow or respective owner

Related posts about python

Related posts about bitstream