Home
last modified time | relevance | path

Searched refs:__float__ (Results 1 - 25 of 37) sorted by relevance

12

/third_party/python/Lib/
H A Dnumbers.py159 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 Dtest_cmath.py177 # 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 Dtest_float.py185 # 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 Dtest_class.py94 def __float__(self, *args):
361 self.assertCallStack([('__float__', (testme,))])
465 __float__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
H A Dtest_binop.py67 def __float__(self): member in Rat
H A Dtest_fractions.py41 # 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 Dtest_numbers.py110 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 Dsummary.py79 def __float__(self): member in Int
153 def __float__(self): member in Float
181 def __float__(self): member in Frac
H A Dcov.py63 def __float__(self): member in Int
124 def __float__(self): member in Frac
H A Dstructs.py59 def __float__(self): member in Int
H A Dcode.py63 def __float__(self): member in Int
H A Ddata.py63 def __float__(self): member in Int
H A Dstack.py54 def __float__(self): member in Int
/third_party/node/deps/v8/third_party/markupsafe/
H A D__init__.py222 __float__ = lambda s: float(s.obj) variable in _MarkupEscapeHelper
/third_party/node/tools/inspector_protocol/markupsafe/
H A D__init__.py222 __float__ = lambda s: float(s.obj) variable in _MarkupEscapeHelper
/third_party/skia/third_party/externals/markupsafe/
H A D__init__.py222 __float__ = lambda s: float(s.obj) variable in _MarkupEscapeHelper
/third_party/python/Lib/test/test_capi/
H A Dtest_getargs.py102 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__.py320 def __float__(self) -> float: member in _MarkupEscapeHelper
/third_party/python/Include/internal/
H A Dpycore_global_strings.h100 STRUCT_FOR_ID(__float__)
H A Dpycore_runtime_init.h723 INIT_ID(__float__), \
/third_party/python/Modules/_decimal/tests/
H A Ddeccheck.py66 '__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 Druntime.py796 __float__
/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.py796 __float__
/third_party/jinja2/
H A Druntime.py869 __int__ = __float__ = __complex__ = _fail_with_undefined_error

Completed in 24 milliseconds

12