Return True if either the real or the imaginary part of x is an infinity, and False otherwise.
cmath.isinf(x)