Reading a Bitstream

Miki Tebeka mikit at
Tue Nov 18 16:28:56 CET 2003

Hello Dietrich,

> Are there any good modules for reading a bitstream?  Specifically, I 
> have a string and I want to be able to get the next N bits as an 
> integer.  Right now I'm using struct.unpack and bit operations, it's a 
> bit kludgy but it gets the right results.
Have you looked at 'array' and 'xdrlib.Upnacker'?


More information about the Python-list mailing list