Efficient Bit addressing in Python.

George Sakkis george.sakkis at gmail.com
Thu Oct 9 11:53:45 EDT 2008


On Oct 9, 6:30 pm, "Hendrik van Rooyen" <m... at microcorp.co.za> wrote:

> Is there a canonical way to address the bits in a structure
> like an array or string or struct?

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/



More information about the Python-list mailing list