def bit_is_T(self, bpos):
    '\n        Returns True iff bit at position bpos is 1 (True)\n\n        Parameters\n        ----------\n        bpos : int\n            bit position\n\n        Returns\n        -------\n        bool\n\n        '
    assert (bpos < self.len), 'bit position is too large'
    mask = (1 << bpos)
    return ((self.dec_rep & mask) == mask)
Returns True iff bit at position bpos is 1 (True)

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

Returns
-------
bool
def bit_is_T(self, bpos):
    '\n        Returns True iff bit at position bpos is 1 (True)\n\n        Parameters\n        ----------\n        bpos : int\n            bit position\n\n        Returns\n        -------\n        bool\n\n        '
    assert (bpos < self.len), 'bit position is too large'
    mask = (1 << bpos)
    return ((self.dec_rep & mask) == mask)