def pad_from_left( self, n ):                                   #(g10)
        new_str = '0'*n + str( self )                               #(g11)
        bitlist =  map( int, list(new_str) )                        #(g12)
        self.size = len( bitlist )                                  #(g13)
        two_byte_ints_needed = (len(bitlist) + 15) // 16            #(g14)
        self.vector = array.array( 'H', [0]*two_byte_ints_needed )  #(g15)
        map( self._setbit, enumerate(bitlist), bitlist)             #(g16)
Pad a bit vector with n zeros from the left
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/util/bitvector.py/BitVector.pad_from_left