Lines Matching refs:Complex
5 :synopsis: Numeric abstract base classes (Complex, Real, Integral, etc.).
24 .. class:: Complex
47 To :class:`Complex`, :class:`Real` adds the operations that work on real
54 Real also provides defaults for :func:`complex`, :attr:`~Complex.real`,
55 :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
108 those. You can add ``MyFoo`` between :class:`Complex` and
111 class MyFoo(Complex): ...
143 elif isinstance(other, Complex):
150 of :class:`Complex`. I'll refer to all of the above code that doesn't
153 of :class:`Complex` (``a : A <: Complex``), and ``b : B <:
154 Complex``. I'll consider ``a + b``:
172 delegating to :class:`Complex`.
174 If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge,
203 elif isinstance(a, numbers.Complex):