def xl_rowcol_to_cell_fast(row, col):
 if (col in COL_NAMES):
  col_str = COL_NAMES[col]
 else:
  col_str = xl_col_to_name(col)
  COL_NAMES[col] = col_str
 return (col_str + str((row + 1)))

def xl_rowcol_to_cell_fast ( row , col ) : if ( col in COL_NAMES ) : col_str = COL_NAMES [ col ] else : col_str = xl_col_to_name ( col ) COL_NAMES [ col ] = col_str return ( col_str + str ( ( row + 1 ) ) )
optimized version of the xl_rowcol_to_cell function .