def _is_numeric(x):
 try:
  float(str(x))
  return True
 except ValueError:
  return False

def _is_numeric ( x ) : try : float ( str ( x ) ) return True except ValueError : return False
test whether the argument can be serialized as a number .