def find_T_bit_to_left_of(self, bpos):
    '\n        Returns position of 1 (True) bit immediately to the left of position\n        bpos. Returns -1 if there is no such bit.\n\n        Parameters\n        ----------\n        bpos : int\n            bit position\n\n        Returns\n        -------\n        int\n\n        '
    if (bpos >= (self.len - 1)):
        return (- 1)
    left_T_bit = bpos
    mask = (1 << left_T_bit)
    found_it = False
    while True:
        left_T_bit += 1
        mask <<= 1
        found_it = ((self.dec_rep & mask) == mask)
        if ((left_T_bit == (self.len - 1)) or found_it):
            break
    if found_it:
        return left_T_bit
    else:
        return (- 1)
Returns position of 1 (True) bit immediately to the left of position
bpos. Returns -1 if there is no such bit.

Parameters
----------
bpos : int
    bit position

Returns
-------
int
def find_T_bit_to_left_of(self, bpos):
    '\n        Returns position of 1 (True) bit immediately to the left of position\n        bpos. Returns -1 if there is no such bit.\n\n        Parameters\n        ----------\n        bpos : int\n            bit position\n\n        Returns\n        -------\n        int\n\n        '
    if (bpos >= (self.len - 1)):
        return (- 1)
    left_T_bit = bpos
    mask = (1 << left_T_bit)
    found_it = False
    while True:
        left_T_bit += 1
        mask <<= 1
        found_it = ((self.dec_rep & mask) == mask)
        if ((left_T_bit == (self.len - 1)) or found_it):
            break
    if found_it:
        return left_T_bit
    else:
        return (- 1)