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`.
109 those. You can add ``MyFoo`` between :class:`Complex` and
112 class MyFoo(Complex): ...
146 elif isinstance(other, Complex):
153 of :class:`Complex`. I'll refer to all of the above code that doesn't
156 of :class:`Complex` (``a : A <: Complex``), and ``b : B <:
157 Complex``. I'll consider ``a + b``:
175 delegating to :class:`Complex`.
177 If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge,
206 elif isinstance(a, numbers.Complex):