def insert(self, index, child):
if not (isinstance(child, CP2KSection) or isinstance(child, CP2KKeyword)):<EOL><INDENT>raise TypeError("<STR_LIT>" % child)<EOL><DEDENT>l = self.__index.setdefault(child.name, [])<EOL>l.append(child)<EOL>self.__order.insert(index, child)<EOL>
Insert a child section or keyword