parameters: (self, index, insStr)
docstring: 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']
docstring_summary: Inserts new element at location index in the list of parsed tokens.
docstring_tokens: Inserts new element at location index in the list of parsed tokens .
function: def insert(self, index, insStr):
          """
          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']
          """
          self.__toklist.insert(index, insStr)
          # fixup indices in token dictionary
          for name, occurrences in self.__tokdict.items():
              for k, (value, position) in enumerate(occurrences):
                  occurrences[k] = _ParseResultsWithOffset(value, position + (position > index))
function_tokens: def insert ( self , index , insStr ) : self . __toklist . insert ( index , insStr ) # fixup indices in token dictionary for name , occurrences in self . __tokdict . items ( ) : for k , ( value , position ) in enumerate ( occurrences ) : occurrences [ k ] = _ParseResultsWithOffset ( value , position + ( position > index ) )