Lines Matching refs:Complex
5 :synopsis: Numeric abstract base classes (Complex, Real, Integral, etc.).
25 .. class:: Complex
48 To :class:`Complex`, :class:`Real` adds the operations that work on real
55 Real also provides defaults for :func:`complex`, :attr:`~Complex.real`,
56 :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
110 those. You can add ``MyFoo`` between :class:`Complex` and
113 class MyFoo(Complex): ...
147 elif isinstance(other, Complex):
154 of :class:`Complex`. I'll refer to all of the above code that doesn't
157 of :class:`Complex` (``a : A <: Complex``), and ``b : B <:
158 Complex``. I'll consider ``a + b``:
176 delegating to :class:`Complex`.
178 If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge,
207 elif isinstance(a, numbers.Complex):