def insert( self, index, insStr ):
self.__toklist.insert(index, insStr)<EOL>for name,occurrences in self.__tokdict.items():<EOL><INDENT>for k, (value, position) in enumerate(occurrences):<EOL><INDENT>occurrences[k] = _ParseResultsWithOffset(value, position + (position > index))<EOL><DEDENT><DEDENT>
Inserts new element at location index in the list of parsed tokens.

Similar to ``list.insert()``.

Example::

    print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321']

    # use a parse action to insert the parse location in the front of the parsed results
    def insert_locn(locn, tokens):
        tokens.insert(0, locn)
    print(OneOrMore(Word(nums)).addParseAction(insert_locn).parseString("0 123 321")) # -> [0, '0', '123', '321']