Home
last modified time | relevance | path

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

/third_party/python/Lib/
Dnumbers.py197 def __divmod__(self, other): member in Real
Dfractions.py424 __divmod__, __rdivmod__ = _operator_fallbacks(_divmod, divmod) variable in Fraction
D_pydecimal.py1423 def __divmod__(self, other, context=None): member in Decimal
1464 return other.__divmod__(self, context=context)
4433 r = a.__divmod__(b, context=self)
Ddatetime.py727 def __divmod__(self, other): member in timedelta
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py481 m.__divmod__.return_value = (2, 1)
486 foo_direct = m.__divmod__(2)
/third_party/python/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
5144 self.assertRaises(DivisionByZero, Decimal(9).__divmod__, 0)
5150 self.assertRaises(InvalidOperation, Decimal(9).__divmod__, 0)
Dtest_os.py816 def __divmod__(*args): member in UtimeTests.test_issue31577.get_bad_int.BadInt
Ddatetimetester.py1018 def __divmod__(self, other): member in TestTimeDelta.test_issue31752.Sum
/third_party/python/Doc/reference/
Ddatamodel.rst2353 object.__divmod__(self, other)
2371 :meth:`__divmod__` method should be the equivalent to using
/third_party/python/Doc/c-api/
Dtypeobj.rst224 …:`~PyNumberMethods.nb_divmod` | :c:type:`binaryfunc` | __divmod__ |
/third_party/python/Doc/whatsnew/
D3.5.rst2017 :meth:`__divmod__` and :meth:`__matmul__` operators.
/third_party/python/Doc/library/
Dunittest.mock.rst2023 ``__floordiv__``, ``__mod__``, ``__divmod__``, ``__lshift__``,
/third_party/python/Misc/
DHISTORY11189 - Issue #10596: Fix float.__mod__ to have the same behaviour as float.__divmod__