On this page
  1. cmath.isfinite
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

cmath.isfinite

Prev: cmath.isclose | Up: cmath | Next: cmath.isinf
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.isfinite
Tags: #public #python3 #stdlib #cmath


Import

import cmath
from cmath import isfinite

Signature & Overview

cmath.isfinite(z, /)

Return True if both the real and imaginary parts of z are finite, else False.

Usage

import cmath

assert cmath.isfinite(1 + 2j) is True
assert cmath.isfinite(complex(float("inf"), 0)) is False

Gotchas

REPL Inspect

from cmath import isfinite
help(isfinite)

Linked from

Related notes