Lines Matching refs:__float__
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):
237 def __float__(self):
242 def __float__(self):
245 def __float__(self):
252 # other combinations of __float__ and __complex__
259 # either __complex__ or __float__, even if they provide
276 # functions, by virtue of providing a __float__ method
279 self.assertEqual(f(arg), f(arg.__float__()))