def VimExpressionToPythonType(vim_expression):
 result = vim.eval(vim_expression)
 if (not (isinstance(result, str) or isinstance(result, bytes))):
  return result
 try:
  return int(result)
 except ValueError:
  return ToUnicode(result)

def VimExpressionToPythonType ( vim_expression ) : result = vim . eval ( vim_expression ) if ( not ( isinstance ( result , str ) or isinstance ( result , bytes ) ) ) : return result try : return int ( result ) except ValueError : return ToUnicode ( result )
returns a python type from the return value of the supplied vim expression .