/third_party/python/Lib/ |
H A D | numbers.py | 46 def __complex__(self): member in Complex 246 def __complex__(self): member in Real
|
H A D | typing.py | 2786 """An ABC with one abstract method __complex__.""" 2791 def __complex__(self) -> complex: member in SupportsComplex
|
H A D | _pydecimal.py | 1656 def __complex__(self): member in Decimal
|
/third_party/python/Lib/test/ |
H A D | test_complex.py | 311 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 D | test_cmath.py | 177 # 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 D | test_class.py | 466 __complex__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
|
H A D | test_typing.py | 3266 def __complex__(self): member in ProtocolTests.test_supports_complex.C
|
/third_party/python/Lib/test/test_capi/ |
H A D | test_getargs.py | 126 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 D | pycore_global_strings.h | 85 STRUCT_FOR_ID(__complex__)
|
H A D | pycore_runtime_init.h | 708 INIT_ID(__complex__), \
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | runtime.py | 798 __complex__
|
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | runtime.py | 647 __float__ = __complex__ = __pow__ = __rpow__ = __sub__ = \
|
/third_party/skia/third_party/externals/jinja2/ |
H A D | runtime.py | 798 __complex__
|
/third_party/jinja2/ |
H A D | runtime.py | 869 __int__ = __float__ = __complex__ = _fail_with_undefined_error
|
/third_party/python/Objects/ |
H A D | complexobject.c | 285 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 D | deccheck.py | 65 '__abs__', '__bool__', '__ceil__', '__complex__', '__copy__', 547 __complex__ = __float__ variable in SkipHandler
|
/third_party/python/Lib/collections/ |
H A D | __init__.py | 1351 def __complex__(self): member in UserString
|