I need a compact representation of an array of booleans, does Python have a builtin bitfield type or will I need to find an alternate solution?
NumPy has a array interface module that you can use to make a bitfield.