(number)
Return a zero or one for each bit of a numeric value up to the most
    significant 1 bit, beginning with the least significant bit.
Return a zero or one for each bit of a numeric value up to the most
    significant 1 bit, beginning with the least significant bit.
Return a zero or one for each bit of a numeric value up to the most significant 1 bit beginning with the least significant bit .
def gen_bit_values(number):
    """
    Return a zero or one for each bit of a numeric value up to the most
    significant 1 bit, beginning with the least significant bit.
    """
    number = int(number)
    while number:
        yield number & 0x1
        number >>= 1
def gen_bit_values ( number ) : number = int ( number ) while number : yield number & 0x1 number >>= 1