Searched refs:__truediv__ (Results 1 – 14 of 14) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_complex.py | 76 q = z.__truediv__(x) 83 q = z.__truediv__(y) 108 self.assertAlmostEqual(complex.__truediv__(2+0j, 1+1j), 1-1j) 109 self.assertRaises(ZeroDivisionError, complex.__truediv__, 1+1j, 0+0j) 409 __truediv__ = __div__ variable in ComplexTest.test_subclass.xcomplex
|
D | test_binop.py | 133 def __truediv__(self, other): member in Rat 143 __div__ = __truediv__
|
D | test_augassign.py | 168 def __truediv__(self, val): member in AugAssignTest.testCustomMethods2.testall
|
D | test_coercion.py | 63 def __truediv__(self,other): member in MethodNumber
|
D | test_float.py | 240 self.assertEqual(float(n).__truediv__(d), f)
|
/external/python/cpython2/Lib/ |
D | numbers.py | 124 def __truediv__(self, other): member in Complex
|
D | fractions.py | 414 __truediv__, __rtruediv__ = _operator_fallbacks(_div, operator.truediv) variable in Fraction
|
D | decimal.py | 1291 def __truediv__(self, other, context=None): member in Decimal 1388 return other.__truediv__(self, context=context) 1390 __div__ = __truediv__
|
/external/clang/utils/ABITest/ |
D | Enumeration.py | 36 __truediv__ = __floordiv__ variable in Aleph0
|
/external/libmojo/third_party/jinja2/ |
D | runtime.py | 494 __truediv__ = __rtruediv__ = __floordiv__ = __rfloordiv__ = \
|
/external/python/cpython2/Modules/ |
D | operator.c | 393 spam2(truediv,__truediv__, "truediv(a, b) -- Same as a / b when __future__.division is in effect.")
|
/external/python/cpython2/Doc/library/ |
D | operator.rst | 196 __truediv__(a, b)
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 2104 related to :meth:`__truediv__` (described below). Note that :meth:`__pow__` 2113 object.__truediv__(self, other) 2116 :meth:`__truediv__` method is used when ``__future__.division`` is in effect,
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.2.rst | 755 * Classes can define methods called :meth:`__truediv__` and :meth:`__floordiv__`
|