/third_party/python/Lib/ |
H A D | numbers.py | 159 def __float__(self): member in Real 283 def __float__(self): member in Rational 379 def __float__(self): member in Integral
|
/third_party/python/Lib/test/ |
H A D | test_cmath.py | 177 # Test automatic calling of __complex__ and __float__ by cmath 218 # some classes not providing __float__ or __complex__ 229 # other possible combinations of __float__ and __complex__ 232 def __float__(self): member in CMathTests.test_user_object.FloatAndComplex 237 def __float__(self): member in CMathTests.test_user_object.FloatAndComplexOS 242 def __float__(self): member in CMathTests.test_user_object.JustFloat 245 def __float__(self): member in CMathTests.test_user_object.JustFloatOS 252 # other combinations of __float__ and __complex__ 259 # either __complex__ or __float__, even if they provide 276 # functions, by virtue of providing a __float__ metho [all...] |
H A D | test_float.py | 185 # Make sure that calls to __float__() work properly 187 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo1 191 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo2 198 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo3 202 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo4 205 # Issue 5759: __float__ not called on str subclasses (though it is on 208 def __float__(self): member in GeneralFloatCases.test_floatconversion.FooStr 219 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo5 225 def __float__(self): member in GeneralFloatCases.test_floatconversion.F
|
H A D | test_class.py | 94 def __float__(self, *args): 361 self.assertCallStack([('__float__', (testme,))]) 465 __float__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
|
H A D | test_binop.py | 67 def __float__(self): member in Rat
|
H A D | test_fractions.py | 41 # shouldn't be calling __float__ at all when doing comparisons 42 def __float__(self): member in DummyFloat 43 assert False, "__float__ should not be invoked for comparisons" 80 def __float__(self): member in DummyRational 81 assert False, "__float__ should not be invoked" 381 # Check that __float__ isn't implemented by converting the
|
/third_party/python/Lib/ctypes/test/ |
H A D | test_numbers.py | 110 def __float__(self): member in NumberTestCase.test_floats.FloatLike 121 def __float__(self): member in NumberTestCase.test_integers.FloatLike
|
/third_party/littlefs/scripts/ |
H A D | summary.py | 79 def __float__(self): member in Int 153 def __float__(self): member in Float 181 def __float__(self): member in Frac
|
H A D | cov.py | 63 def __float__(self): member in Int 124 def __float__(self): member in Frac
|
H A D | structs.py | 59 def __float__(self): member in Int
|
H A D | code.py | 63 def __float__(self): member in Int
|
H A D | data.py | 63 def __float__(self): member in Int
|
H A D | stack.py | 54 def __float__(self): member in Int
|
/third_party/node/deps/v8/third_party/markupsafe/ |
H A D | __init__.py | 222 __float__ = lambda s: float(s.obj) variable in _MarkupEscapeHelper
|
/third_party/node/tools/inspector_protocol/markupsafe/ |
H A D | __init__.py | 222 __float__ = lambda s: float(s.obj) variable in _MarkupEscapeHelper
|
/third_party/skia/third_party/externals/markupsafe/ |
H A D | __init__.py | 222 __float__ = lambda s: float(s.obj) variable in _MarkupEscapeHelper
|
/third_party/python/Lib/test/test_capi/ |
H A D | test_getargs.py | 102 def __float__(self): member in Float 109 def __float__(self): member in FloatSubclass2 113 def __float__(self): member in BadFloat 117 def __float__(self): member in BadFloat2 121 def __float__(self): member in BadFloat3
|
/third_party/markupsafe/ |
H A D | __init__.py | 320 def __float__(self) -> float: member in _MarkupEscapeHelper
|
/third_party/python/Include/internal/ |
H A D | pycore_global_strings.h | 100 STRUCT_FOR_ID(__float__)
|
H A D | pycore_runtime_init.h | 723 INIT_ID(__float__), \
|
/third_party/python/Modules/_decimal/tests/ |
H A D | deccheck.py | 66 '__floor__', '__float__', '__hash__', '__int__', '__neg__', 541 def __float__(self, t): member in SkipHandler 547 __complex__ = __float__ 1082 """Iterate the __float__ method through many test cases."""
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | runtime.py | 796 __float__
|
/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 | 796 __float__
|
/third_party/jinja2/ |
H A D | runtime.py | 869 __int__ = __float__ = __complex__ = _fail_with_undefined_error
|