Home
last modified time | relevance | path

Searched refs:__divmod__ (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Lib/
Dnumbers.py197 def __divmod__(self, other): member in Real
D_pydecimal.py1419 def __divmod__(self, other, context=None): member in Decimal
1460 return other.__divmod__(self, context=context)
4429 r = a.__divmod__(b, context=self)
Ddatetime.py708 def __divmod__(self, other): member in timedelta
/external/python/cpython2/Lib/
Dnumbers.py200 def __divmod__(self, other): member in Real
Ddecimal.py1393 def __divmod__(self, other, context=None): member in Decimal
1434 return other.__divmod__(self, context=context)
4259 r = a.__divmod__(b, context=self)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py440 m.__divmod__.return_value = (2, 1)
445 foo_direct = m.__divmod__(2)
/external/python/mock/mock/tests/
Dtestmagicmethods.py505 m.__divmod__.return_value = (2, 1)
510 foo_direct = m.__divmod__(2)
/external/python/cpython2/Lib/test/
Dtest_binop.py171 def __divmod__(self, other): member in Rat
Dtest_datetime.py511 def __divmod__(self, other): member in TestTimeDelta.test_issue31752.Sum
523 def __divmod__(self, other): member in TestTimeDelta.test_issue31752.Sum
Dtest_decimal.py634 def __divmod__(self, other): member in DecimalImplicitConstructionTest.test_rop.E
/external/python/cpython3/Lib/test/
Dtest_binop.py162 def __divmod__(self, other): member in Rat
Dtest_decimal.py867 def __divmod__(self, other): member in ImplicitConstructionTest.test_rop.E
5126 self.assertRaises(DivisionByZero, Decimal(9).__divmod__, 0)
5132 self.assertRaises(InvalidOperation, Decimal(9).__divmod__, 0)
Dtest_os.py667 def __divmod__(*args): member in UtimeTests.test_issue31577.get_bad_int.BadInt
Ddatetimetester.py914 def __divmod__(self, other): member in TestTimeDelta.test_issue31752.Sum
/external/python/pyasn1/pyasn1/type/
Duniv.py184 def __divmod__(self, value): member in Integer
1410 def __divmod__(self, value): member in Real
/external/python/cpython2/Misc/NEWS.d/
D2.7.2rc1.rst214 Fix float.__mod__ to have the same behaviour as float.__divmod__ with
/external/python/cpython2/Doc/reference/
Ddatamodel.rst2097 object.__divmod__(self, other)
2114 method, ``x.__add__(y)`` is called. The :meth:`__divmod__` method should be the
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2265 object.__divmod__(self, other)
2283 :meth:`__divmod__` method should be the equivalent to using
/external/python/cpython3/Doc/whatsnew/
D3.5.rst2017 :meth:`__divmod__` and :meth:`__matmul__` operators.
/external/python/cpython3/Doc/library/
Dunittest.mock.rst1707 ``__floordiv__``, ``__mod__``, ``__divmod__``, ``__lshift__``,
/external/python/cpython2/Misc/
Dcheatsheet1184 s%o = __mod__(s,o) divmod(s,o) = __divmod__(s,o)
/external/python/cpython3/Misc/
DHISTORY11189 - Issue #10596: Fix float.__mod__ to have the same behaviour as float.__divmod__