Efficient bitarray operations in Python I’m implementing a class for handling arrays of bit values in Python. So far, here is what I did: