Home
last modified time | relevance | path

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

12

/external/python/cpython3/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
/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/mock/mock/tests/
Dtestmagicmethods.py525 m.__divmod__.return_value = (2, 1)
530 foo_direct = m.__divmod__(2)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py481 m.__divmod__.return_value = (2, 1)
486 foo_direct = m.__divmod__(2)
/external/llvm-project/lldb/examples/python/
Dsbvalue.py143 def __divmod__(self, other): member in variable
/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.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
/external/python/pyasn1/pyasn1/type/
Duniv.py188 def __divmod__(self, value): member in Integer
1459 def __divmod__(self, value): member in Real
/external/llvm-project/lldb/bindings/python/
Dpython-extensions.swig374 def __divmod__(self, other):
/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.rst2354 object.__divmod__(self, other)
2372 :meth:`__divmod__` method should be the equivalent to using
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst224 …:`~PyNumberMethods.nb_divmod` | :c:type:`binaryfunc` | __divmod__ |
/external/python/cpython3/Doc/whatsnew/
D3.5.rst2017 :meth:`__divmod__` and :meth:`__matmul__` operators.
/external/python/cpython3/Doc/library/
Dunittest.mock.rst2023 ``__floordiv__``, ``__mod__``, ``__divmod__``, ``__lshift__``,
/external/python/cpython2/Misc/
Dcheatsheet1184 s%o = __mod__(s,o) divmod(s,o) = __divmod__(s,o)

12