Is there a Python class or module that implements a structure that is similar to the BitSet?
+4
A:
You might like to take a look at a module I wrote called bitstring (full documentation here), although for simple cases that need to be as fast as possible I'd still recommend bitarray.
Some similar questions:
http://stackoverflow.com/questions/142812/does-python-have-a-bitfield-type
http://stackoverflow.com/questions/2450208/python-bitstream-implementations
Scott Griffiths
2010-10-15 23:02:15