Reading a Bitstream

Miki Tebeka mikit at zoran.co.il
Tue Nov 18 10:28:56 EST 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'?

HTH.
Miki




More information about the Python-list mailing list