Home
last modified time | relevance | path

Searched refs:__complex__ (Results 1 - 17 of 17) sorted by relevance

/third_party/python/Lib/
H A Dnumbers.py46 def __complex__(self): member in Complex
246 def __complex__(self): member in Real
H A Dtyping.py2786 """An ABC with one abstract method __complex__."""
2791 def __complex__(self) -> complex: member in SupportsComplex
H A D_pydecimal.py1656 def __complex__(self): member in Decimal
/third_party/python/Lib/test/
H A Dtest_complex.py311 def __complex__(self): return self.value member in ComplexTest.test_constructor.NS
441 def __complex__(self): member in ComplexTest.test_constructor.evilcomplex
475 """Test usage of __complex__() when inheriting from 'complex'"""
476 def __complex__(self): member in ComplexTest.test_constructor.complex0
480 """Test usage of __complex__() with a __new__() method"""
483 def __complex__(self): member in ComplexTest.test_constructor.complex1
487 """Make sure that __complex__() calls fail if anything other than a
489 def __complex__(self): member in ComplexTest.test_constructor.complex2
499 self.assertEqual(z.__complex__(), z)
500 self.assertEqual(type(z.__complex__()), comple
[all...]
H A Dtest_cmath.py177 # Test automatic calling of __complex__ and __float__ by cmath
187 # non-complex return values from __complex__ give an error
194 # usual case: new-style class implementing __complex__
198 def __complex__(self): member in CMathTests.test_user_object.MyComplex
201 # old-style class implementing __complex__
205 def __complex__(self): member in CMathTests.test_user_object.MyComplexOS
208 # classes for which __complex__ raises an exception
212 def __complex__(self): member in CMathTests.test_user_object.MyComplexException
215 def __complex__(self): member in CMathTests.test_user_object.MyComplexExceptionOS
218 # some classes not providing __float__ or __complex__
234 def __complex__(self): global() member in CMathTests.test_user_object.FloatAndComplex
239 def __complex__(self): global() member in CMathTests.test_user_object.FloatAndComplexOS
[all...]
H A Dtest_class.py466 __complex__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
H A Dtest_typing.py3266 def __complex__(self): member in ProtocolTests.test_supports_complex.C
/third_party/python/Lib/test/test_capi/
H A Dtest_getargs.py126 def __complex__(self): member in Complex
133 def __complex__(self): member in ComplexSubclass2
137 def __complex__(self): member in BadComplex
141 def __complex__(self): member in BadComplex2
145 def __complex__(self): member in BadComplex3
/third_party/python/Include/internal/
H A Dpycore_global_strings.h85 STRUCT_FOR_ID(__complex__)
H A Dpycore_runtime_init.h708 INIT_ID(__complex__), \
/third_party/node/deps/v8/third_party/jinja2/
H A Druntime.py798 __complex__
/third_party/node/tools/inspector_protocol/jinja2/
H A Druntime.py647 __float__ = __complex__ = __pow__ = __rpow__ = __sub__ = \
/third_party/skia/third_party/externals/jinja2/
H A Druntime.py798 __complex__
/third_party/jinja2/
H A Druntime.py869 __int__ = __float__ = __complex__ = _fail_with_undefined_error
/third_party/python/Objects/
H A Dcomplexobject.c285 f = _PyObject_LookupSpecial(op, &_Py_ID(__complex__)); in try_complex_special_method()
294 "__complex__ returned non-complex (type %.200s)", in try_complex_special_method()
301 "__complex__ returned non-complex (type %.200s). " in try_complex_special_method()
324 /* If not, use op's __complex__ method, if it exists */ in PyComplex_AsCComplex()
698 complex.__complex__
/third_party/python/Modules/_decimal/tests/
H A Ddeccheck.py65 '__abs__', '__bool__', '__ceil__', '__complex__', '__copy__',
547 __complex__ = __float__ variable in SkipHandler
/third_party/python/Lib/collections/
H A D__init__.py1351 def __complex__(self): member in UserString

Completed in 40 milliseconds