Home
last modified time | relevance | path

Searched refs:__float__ (Results 1 – 25 of 59) sorted by relevance

123

/external/python/cpython3/Lib/
Dnumbers.py159 def __float__(self): member in Real
283 def __float__(self): member in Rational
375 def __float__(self): member in Integral
/external/python/cpython2/Lib/
Dnumbers.py181 def __float__(self): member in Real
284 def __float__(self): member in Rational
376 def __float__(self): member in Integral
DUserString.py25 def __float__(self): return float(self.data) member in UserString
/external/python/cpython2/Lib/test/
Dtest_cmath.py181 def __float__(self): member in CMathTests.test_user_object.FloatAndComplex
186 def __float__(self): member in CMathTests.test_user_object.FloatAndComplexOS
191 def __float__(self): member in CMathTests.test_user_object.JustFloat
194 def __float__(self): member in CMathTests.test_user_object.JustFloatOS
228 self.assertEqual(f(arg), f(arg.__float__()))
Dtest_float.py167 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo0
171 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo1
175 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo2
182 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo3
186 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo4
192 def __float__(self): member in GeneralFloatCases.test_floatconversion.FooStr
196 def __float__(self): member in GeneralFloatCases.test_floatconversion.FooUnicode
208 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo5
214 def __float__(self): member in GeneralFloatCases.test_floatconversion.F
Dtest_getargs2.py76 def __float__(self): member in Float
83 def __float__(self): member in FloatSubclass2
87 def __float__(self): member in BadFloat
91 def __float__(self): member in BadFloat2
95 def __float__(self): member in BadFloat3
Dtest_class.py100 def __float__(self, *args): member in AllTests
498 __float__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
Dtest_format.py329 def __float__(self): member in FormatTest.test_invalid_special_methods.X
Dtest_fractions.py44 def __float__(self): member in DummyFloat
85 def __float__(self): member in DummyRational
Dtest_binop.py66 def __float__(self): member in Rat
/external/python/cpython3/Lib/test/
Dtest_cmath.py233 def __float__(self): member in CMathTests.test_user_object.FloatAndComplex
238 def __float__(self): member in CMathTests.test_user_object.FloatAndComplexOS
243 def __float__(self): member in CMathTests.test_user_object.JustFloat
246 def __float__(self): member in CMathTests.test_user_object.JustFloatOS
280 self.assertEqual(f(arg), f(arg.__float__()))
Dtest_float.py177 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo1
181 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo2
188 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo3
192 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo4
198 def __float__(self): member in GeneralFloatCases.test_floatconversion.FooStr
209 def __float__(self): member in GeneralFloatCases.test_floatconversion.Foo5
215 def __float__(self): member in GeneralFloatCases.test_floatconversion.F
Dtest_getargs2.py78 def __float__(self): member in Float
85 def __float__(self): member in FloatSubclass2
89 def __float__(self): member in BadFloat
93 def __float__(self): member in BadFloat2
97 def __float__(self): member in BadFloat3
Dtest_fractions.py40 def __float__(self): member in DummyFloat
78 def __float__(self): member in DummyRational
Dtest_class.py465 __float__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
/external/python/cpython2/Lib/ctypes/test/
Dtest_numbers.py110 def __float__(self): member in NumberTestCase.test_floats.FloatLike
121 def __float__(self): member in NumberTestCase.test_integers.FloatLike
/external/python/cpython3/Lib/ctypes/test/
Dtest_numbers.py110 def __float__(self): member in NumberTestCase.test_floats.FloatLike
121 def __float__(self): member in NumberTestCase.test_integers.FloatLike
/external/python/cpython3/Doc/c-api/
Dfloat.rst48 *pyfloat* is not a Python floating point object but has a :meth:`__float__`
/external/libchrome/third_party/markupsafe/
D__init__.py222 __float__ = lambda s: float(s.obj) member in _MarkupEscapeHelper
/external/python/cpython2/Doc/c-api/
Dfloat.rst56 *pyfloat* is not a Python floating point object but has a :meth:`__float__`
/external/python/cpython2/Demo/classes/
DComplex.py155 def __float__(self): member in Complex
Dbitvec.py329 def __float__(self): member in BitVec
/external/python/pyasn1/pyasn1/type/
Duniv.py199 def __float__(self): member in Integer
546 def __float__(self): member in BitString
1021 def __float__(self): member in OctetString
1423 def __float__(self): member in Real
/external/fonttools/Lib/fontTools/misc/
DloggingTools.py382 def __float__(self): member in Timer
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py506 def __float__(self, t): member in SkipHandler
512 __complex__ = __float__

123