def is_numeric(space, w_obj):
    """ Finds whether a variable is a number or a numeric string"""
    if w_obj.tp in [space.tp_float, space.tp_int]:
        return space.w_True
    if w_obj.tp == space.tp_str:
        return space.newbool(w_obj.is_really_valid_number(space))
    return space.w_False