def mpc_is_infnan(z):
    """Check if either real or imaginary part is infinite or nan"""
    re, im = z
    if re in _infs_nan: return True
    if im in _infs_nan: return True
    return False
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/libmp/libmpc.py/mpc_is_infnan/original