/external/python/cpython3/Lib/test/libregrtest/ |
D | utils.py | 8 seconds, ms = divmod(ms, 1000) 9 minutes, seconds = divmod(seconds, 60) 10 hours, minutes = divmod(minutes, 60)
|
/external/python/cpython3/Lib/ |
D | datetime.py | 107 n400, n = divmod(n, _DI400Y) 115 n100, n = divmod(n, _DI100Y) 118 n4, n = divmod(n, _DI4Y) 122 n1, n = divmod(n, 365) 185 hh, mm = divmod(off, timedelta(hours=1)) 186 mm, ss = divmod(mm, timedelta(minutes=1)) 228 h, rest = divmod(offset, timedelta(hours=1)) 229 m, rest = divmod(rest, timedelta(minutes=1)) 442 q, r = divmod(a, b) 525 days, seconds = divmod(seconds, 24*3600) [all …]
|
/external/python/cpython2/Lib/ |
D | random.py | 685 a, x = divmod(a, 30268) 686 a, y = divmod(a, 30306) 687 a, z = divmod(a, 30322) 774 t, x = divmod(t, 256) 775 t, y = divmod(t, 256) 776 t, z = divmod(t, 256) 797 a, x = divmod(a, 256) 798 a, y = divmod(a, 256) 799 a, z = divmod(a, 256)
|
D | base64.py | 148 quanta, leftover = divmod(len(s), 5) 203 quanta, leftover = divmod(len(s), 8)
|
/external/python/cpython2/Lib/test/ |
D | test_builtin.py | 330 self.assertEqual(divmod(12, 7), (1, 5)) 331 self.assertEqual(divmod(-12, 7), (-2, 2)) 332 self.assertEqual(divmod(12, -7), (-2, -2)) 333 self.assertEqual(divmod(-12, -7), (1, -5)) 335 self.assertEqual(divmod(12L, 7L), (1L, 5L)) 336 self.assertEqual(divmod(-12L, 7L), (-2L, 2L)) 337 self.assertEqual(divmod(12L, -7L), (-2L, -2L)) 338 self.assertEqual(divmod(-12L, -7L), (1L, -5L)) 340 self.assertEqual(divmod(12, 7L), (1, 5L)) 341 self.assertEqual(divmod(-12, 7L), (-2, 2L)) [all …]
|
D | test_binop.py | 186 return divmod(other, self) 190 return divmod(self, other)[1] 194 return divmod(other, self)[1]
|
D | test_strtod.py | 57 q, r = divmod(a, b) 157 e, m = divmod(bits, 2**52)
|
D | test_bufio.py | 49 q, r = divmod(length, len(pattern))
|
/external/python/dateutil/dateutil/ |
D | rrule.py | 844 daypos, timepos = divmod(pos, len(timeset)) 846 daypos, timepos = divmod(pos-1, len(timeset)) 901 div, mod = divmod(month, 12) 931 ndays, hour = divmod(hour+interval, 24) 952 nhours, minute = divmod(minute+interval, 60) 954 div, hour = divmod(hour+nhours, 24) 984 nminutes, second = divmod(second+interval, 60) 986 div, minute = divmod(minute+nminutes, 60) 989 div, hour = divmod(hour, 24) 1061 if i_gcd == 1 or divmod(num - start, i_gcd)[1] == 0: [all …]
|
D | relativedelta.py | 220 div, mod = divmod(self.microseconds * s, 1000000) 225 div, mod = divmod(self.seconds * s, 60) 230 div, mod = divmod(self.minutes * s, 60) 235 div, mod = divmod(self.hours * s, 24) 240 div, mod = divmod(self.months * s, 12) 262 div, mod = divmod(self.months * s, 12)
|
/external/clang/utils/ |
D | FuzzTest | 46 index,picked_position = divmod(index, self.num_positions) 53 index,position = divmod(index, self.num_positions) 60 index,insert_index = divmod(index, self.num_insert_strings)
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 439 self.assertIsInstance(divmod(5, m), MagicMock) 441 self.assertEqual(divmod(m, 2), (2, 1)) 443 foo = divmod(2, m) 447 bar = divmod(m, 2)
|
/external/python/rsa/rsa/ |
D | randnum.py | 34 nbytes, rbits = divmod(nbits, 8)
|
D | common.py | 102 quanta, mod = divmod(num, div)
|
/external/python/mock/mock/tests/ |
D | testmagicmethods.py | 504 self.assertIsInstance(divmod(5, m), MagicMock) 506 self.assertEqual(divmod(m, 2), (2, 1)) 508 foo = divmod(2, m) 512 bar = divmod(m, 2)
|
/external/python/cpython3/Lib/email/ |
D | base64mime.py | 52 groups_of_3, leftover = divmod(len(bytearray), 3)
|
/external/python/cpython3/Lib/test/ |
D | test_strtod.py | 56 q, r = divmod(a, b) 156 e, m = divmod(bits, 2**52)
|
D | test_binop.py | 177 return divmod(other, self) 181 return divmod(self, other)[1] 185 return divmod(other, self)[1]
|
D | test_bufio.py | 49 q, r = divmod(length, len(pattern))
|
D | test_abstract_numbers.py | 37 self.assertRaises(TypeError, divmod, c1, c2)
|
/external/libkmsxx/py/tests/ |
D | ctm_test.py | 12 i, d = divmod(ctm[x], 1)
|
/external/fonttools/Lib/fontTools/misc/ |
D | py23.py | 362 quotient, remainder = divmod(number, exponent) 432 quotient, remainder = divmod(number, exponent)
|
/external/python/cpython2/Lib/email/ |
D | base64mime.py | 54 groups_of_3, leftover = divmod(len(s), 3)
|
/external/python/cpython2/Lib/plat-irix6/ |
D | readcd.py | 72 min, block = divmod(block, 75*60) 73 sec, frame = divmod(block, 75)
|
/external/python/cpython2/Lib/plat-irix5/ |
D | readcd.py | 72 min, block = divmod(block, 75*60) 73 sec, frame = divmod(block, 75)
|