Home
last modified time | relevance | path

Searched refs:__truediv__ (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_complex.py76 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
Dtest_binop.py133 def __truediv__(self, other): member in Rat
143 __div__ = __truediv__
Dtest_augassign.py168 def __truediv__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_coercion.py63 def __truediv__(self,other): member in MethodNumber
Dtest_float.py240 self.assertEqual(float(n).__truediv__(d), f)
/external/python/cpython2/Lib/
Dnumbers.py124 def __truediv__(self, other): member in Complex
Dfractions.py414 __truediv__, __rtruediv__ = _operator_fallbacks(_div, operator.truediv) variable in Fraction
Ddecimal.py1291 def __truediv__(self, other, context=None): member in Decimal
1388 return other.__truediv__(self, context=context)
1390 __div__ = __truediv__
/external/clang/utils/ABITest/
DEnumeration.py36 __truediv__ = __floordiv__ variable in Aleph0
/external/libmojo/third_party/jinja2/
Druntime.py494 __truediv__ = __rtruediv__ = __floordiv__ = __rfloordiv__ = \
/external/python/cpython2/Modules/
Doperator.c393 spam2(truediv,__truediv__, "truediv(a, b) -- Same as a / b when __future__.division is in effect.")
/external/python/cpython2/Doc/library/
Doperator.rst196 __truediv__(a, b)
/external/python/cpython2/Doc/reference/
Ddatamodel.rst2104 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/
D2.2.rst755 * Classes can define methods called :meth:`__truediv__` and :meth:`__floordiv__`