(z)
return False
Check if either real or imaginary part is infinite or nan
Check if either real or imaginary part is infinite or nan
Check if either real or imaginary part is infinite or nan
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
def mpc_is_infnan ( z ) : re , im = z if re in _infs_nan : return True if im in _infs_nan : return True return False