def convert_cell_args(method):
 def cell_wrapper(self, *args, **kwargs):
  try:
   if len(args):
    int(args[0])
  except ValueError:
   new_args = list(xl_cell_to_rowcol(args[0]))
   new_args.extend(args[1:])
   args = new_args
  return method(self, *args, **kwargs)
 return cell_wrapper

def convert_cell_args ( method ) : def cell_wrapper ( self , * args , ** kwargs ) : try : if len ( args ) : int ( args [ 0 ] ) except ValueError : new_args = list ( xl_cell_to_rowcol ( args [ 0 ] ) ) new_args . extend ( args [ 1 : ] ) args = new_args return method ( self , * args , ** kwargs ) return cell_wrapper
decorator function to convert a1 notation in cell method calls to the default row/col notation .