parameters: (self, the_list, new_index)
docstring: Reorder a list by permuting items.
  
          The item at index 0 in the original list is moved to index
          'new_index[0]', and so on.
docstring_summary: Reorder a list by permuting items.
docstring_tokens: Reorder a list by permuting items .
function: def _reorder_list(self, the_list, new_index):
          """
          Reorder a list by permuting items.
  
          The item at index 0 in the original list is moved to index
          'new_index[0]', and so on.
  
          """
          # ensure arguments are valid
          self._input_check(new_index, [list, len(the_list), int])
          # create new list
          the_list[:] = [the_list[i] for i in new_index]
function_tokens: def _reorder_list ( self , the_list , new_index ) : # ensure arguments are valid self . _input_check ( new_index , [ list , len ( the_list ) , int ] ) # create new list the_list [ : ] = [ the_list [ i ] for i in new_index ]