def get_num_T_bits(self):
    '\n        Returns the number of 1 (True) bits at positions bpos\n        from 0 to len-1 inclusive.\n\n        Returns\n        -------\n        int\n\n        '
    count = 0
    for bpos in range(self.len):
        if self.bit_is_T(bpos):
            count += 1
    return count
Returns the number of 1 (True) bits at positions bpos
from 0 to len-1 inclusive.

Returns
-------
int
def get_num_T_bits(self):
    '\n        Returns the number of 1 (True) bits at positions bpos\n        from 0 to len-1 inclusive.\n\n        Returns\n        -------\n        int\n\n        '
    count = 0
    for bpos in range(self.len):
        if self.bit_is_T(bpos):
            count += 1
    return count