def __iter__(self):
        """Overloads iter(bitstring), and also, for bit in bitstring"""
        for index in range(self._length - 1, -1, -1):
            yield (self._bits >> index) % 2
dataset/ETHPy150Open hosford42/xcs/xcs/_python_bitstrings.py/BitString.__iter__/original