Home
last modified time | relevance | path

Searched refs:__complex__ (Results 1 – 25 of 32) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_cmath.py198 def __complex__(self): member in CMathTests.test_user_object.MyComplex
205 def __complex__(self): member in CMathTests.test_user_object.MyComplexOS
212 def __complex__(self): member in CMathTests.test_user_object.MyComplexException
215 def __complex__(self): member in CMathTests.test_user_object.MyComplexExceptionOS
234 def __complex__(self): member in CMathTests.test_user_object.FloatAndComplex
239 def __complex__(self): member in CMathTests.test_user_object.FloatAndComplexOS
Dtest_complex.py311 def __complex__(self): return self.value member in ComplexTest.test_constructor.OS
314 def __complex__(self): return self.value member in ComplexTest.test_constructor.NS
446 def __complex__(self): member in ComplexTest.test_constructor.evilcomplex
481 def __complex__(self): member in ComplexTest.test_constructor.complex0
488 def __complex__(self): member in ComplexTest.test_constructor.complex1
494 def __complex__(self): member in ComplexTest.test_constructor.complex2
Dtest_getargs2.py125 def __complex__(self): member in Complex
132 def __complex__(self): member in ComplexSubclass2
136 def __complex__(self): member in BadComplex
140 def __complex__(self): member in BadComplex2
144 def __complex__(self): member in BadComplex3
Dtest_class.py466 __complex__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
/third_party/python/Lib/
Dnumbers.py46 def __complex__(self): member in Complex
246 def __complex__(self): member in Real
Dtyping.py2181 def __complex__(self) -> complex: member in SupportsComplex
D_pydecimal.py1646 def __complex__(self): member in Decimal
/third_party/python/Doc/c-api/
Dcomplex.rst130 If *op* is not a Python complex number object but has a :meth:`__complex__`
132 number object. If ``__complex__()`` is not defined then it falls back to
/third_party/skia/third_party/externals/jinja2/
Druntime.py798 __complex__
/third_party/node/tools/inspector_protocol/jinja2/
Druntime.py647 __float__ = __complex__ = __pow__ = __rpow__ = __sub__ = \
/third_party/node/deps/v8/third_party/jinja2/
Druntime.py798 __complex__
/third_party/python/Objects/
Dcomplexobject.c282 _Py_IDENTIFIER(__complex__); in try_complex_special_method()
/third_party/python/Doc/library/
Dcmath.rst12 :meth:`__complex__` or a :meth:`__float__` method: these methods are used to
Djson.rst79 ... if '__complex__' in dct:
83 >>> json.loads('{"__complex__": true, "real": 1, "imag": 2}',
Dfunctions.rst366 ``x.__complex__()``. If ``__complex__()`` is not defined then it falls back
383 Falls back to :meth:`__index__` if :meth:`__complex__` and
Dunittest.mock.rst2026 * Numeric conversion methods: ``__complex__``, ``__int__``, ``__float__``
2103 * ``__complex__``: ``1j``
/third_party/jinja2/
Druntime.py869 __int__ = __float__ = __complex__ = _fail_with_undefined_error
/third_party/python/Misc/NEWS.d/
D3.6.1rc1.rst58 subclasses and for inputs having a __complex__ method. Patch by Serhiy
D3.5.4rc1.rst154 subclasses and for inputs having a __complex__ method. Patch by Serhiy
D3.8.0b1.rst74 :meth:`~object.__complex__` is not available.
D3.7.0a1.rst622 The deprecation warning is emitted if __complex__ returns an instance of a
767 subclasses and for inputs having a __complex__ method. Patch by Serhiy
/third_party/python/Modules/_decimal/tests/
Ddeccheck.py547 __complex__ = __float__ variable in SkipHandler
/third_party/python/Lib/collections/
D__init__.py1329 def __complex__(self): member in UserString
/third_party/python/Doc/whatsnew/
D3.7.rst1929 Returning a subclass of :class:`complex` from :meth:`object.__complex__` is
1931 ``__complex__()`` consistent with :meth:`object.__int__` and
/third_party/python/Tools/c-analyzer/
DTODO347 Objects/complexobject.c:try_complex_special_method():PyId___complex__ _Py_IDENTIFIER(__complex__)

12