def insert(self, index, data):
    'Insert an entry at a particular number\n\n        Inserts entry at particular number while moving all subsequent\n        entries to one entry number later. Does not close gaps.\n\n        Parameters\n        ==========\n        index : int\n            index where to put the new entry\n        data : \n            data for the new entry\n        '
    max_entry = self.max_idx()
    if (index > max_entry):
        self[index] = data
        return
    for i in range(max_entry, (index - 1), (- 1)):
        if self.has_entry((i + 1)):
            self.__delitem__((i + 1))
        if self.has_entry(i):
            self.new(self.__getitem__(i), type=self.type(i), number=(i + 1))
    self[index] = data
Insert an entry at a particular number

Inserts entry at particular number while moving all subsequent
entries to one entry number later. Does not close gaps.

Parameters
==========
index : int
    index where to put the new entry
data : 
    data for the new entry
def insert(self, index, data):
    'Insert an entry at a particular number\n\n        Inserts entry at particular number while moving all subsequent\n        entries to one entry number later. Does not close gaps.\n\n        Parameters\n        ==========\n        index : int\n            index where to put the new entry\n        data : \n            data for the new entry\n        '
    max_entry = self.max_idx()
    if (index > max_entry):
        self[index] = data
        return
    for i in range(max_entry, (index - 1), (- 1)):
        if self.has_entry((i + 1)):
            self.__delitem__((i + 1))
        if self.has_entry(i):
            self.new(self.__getitem__(i), type=self.type(i), number=(i + 1))
    self[index] = data