def is_numlike(obj):
 try:
  (obj + 1)
 except TypeError:
  return False
 else:
  return True

def is_numlike ( obj ) : try : ( obj + 1 ) except TypeError : return False else : return True
return true if *obj* looks like a number .