George Sakkis wrote: >I don't know of a canonical way (bit hacking is not really common in >Python) but pehaps BitPacket [1] comes close to what you're after. > >George > >[1] http://hacks-galore.org/aleix/BitPacket/ Thanks for the link - I will check it out - Hendrik