/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_xrange.py | 50 self.assertEqual(list(xrange(3)), [0, 1, 2]) 51 self.assertEqual(list(xrange(1, 5)), [1, 2, 3, 4]) 52 self.assertEqual(list(xrange(0)), []) 53 self.assertEqual(list(xrange(-3)), []) 54 self.assertEqual(list(xrange(1, 10, 3)), [1, 4, 7]) 55 self.assertEqual(list(xrange(5, -5, -3)), [5, 2, -1, -4]) 61 self.assertEqual(list(xrange(a, a+2)), [a, a+1]) 62 self.assertEqual(list(xrange(a+2, a, -1L)), [a+2, a+1]) 63 self.assertEqual(list(xrange(a+4, a, -2)), [a+4, a+2]) 65 seq = list(xrange(a, b, c)) [all …]
|
D | test_deque.py | 31 d = deque(xrange(-5125, -5000)) 32 d.__init__(xrange(200)) 33 for i in xrange(200, 400): 35 for i in reversed(xrange(-200, 0)): 40 left = [d.popleft() for i in xrange(250)] 44 right = [d.pop() for i in xrange(250)] 66 d = deque(xrange(200), maxlen=10) 195 d = deque(xrange(n)) 197 for i in xrange(n): 203 for j in xrange(1-len(l), len(l)): [all …]
|
D | test_random.py | 19 return [self.gen.random() for i in xrange(n)] 64 population = xrange(N) 65 for k in xrange(N+1): 80 return reduce(int.__mul__, xrange(1, n), 1) 81 for k in xrange(n): 84 for i in xrange(trials): 95 self.gen.sample(xrange(20), 2) 110 d = dict((i, complex(i, i)) for i in xrange(N)) 111 for k in xrange(N+1): 138 origseq = [self.gen.random() for i in xrange(10)] [all …]
|
D | test_iterlen.py | 67 for i in reversed(xrange(1, n+1)): 102 self.it = iter(xrange(n)) 107 self.it = reversed(xrange(n)) 112 self.it = iter(tuple(xrange(n))) 119 d = deque(xrange(n)) 126 d = deque(xrange(n)) 133 d = dict.fromkeys(xrange(n)) 140 d = dict.fromkeys(xrange(n)) 147 d = dict.fromkeys(xrange(n)) 154 d = set(xrange(n)) [all …]
|
D | test_strtod.py | 116 for i in xrange(TEST_SIZE): 152 for i in xrange(100 * TEST_SIZE): 187 for j in xrange(1000): 200 for exponent in xrange(-400, -320): 202 for j in xrange(TEST_SIZE): 210 for i in xrange(10 * TEST_SIZE): 223 for i in xrange(1000): 224 for j in xrange(TEST_SIZE): 227 s += ''.join(random.choice(digits) for _ in xrange(intpart_len)) 232 for _ in xrange(fracpart_len)) [all …]
|
D | test_structseq.py | 16 for i in xrange(-len(t), len(t)): 18 for j in xrange(-len(t), len(t)): 21 for j in xrange(-len(t), len(t)): 26 for i in xrange(-len(t), len(t)-1): 40 for i in xrange(len(t1)): 46 for i in xrange(len(t1)):
|
D | time_hashlib.py | 17 for f in xrange(iterations): 25 for f in xrange(20000): 33 for f in xrange(20000):
|
D | test_itertools.py | 675 argtypes = ['', 'abc', '', xrange(0), xrange(4), dict(a=1, b=2, c=3), 692 self.assertEqual(zip(xrange(3),repeat('a')), 746 self.assertEqual(list(islice(xrange(100), *args)), range(*args)) 753 self.assertEqual(list(islice(xrange(100), *args)), range(*tgtargs)) 756 self.assertEqual(list(islice(xrange(10), None)), range(10)) 757 self.assertEqual(list(islice(xrange(10), None, None)), range(10)) 758 self.assertEqual(list(islice(xrange(10), None, None, None)), range(10)) 759 self.assertEqual(list(islice(xrange(10), 2, None)), range(2, 10)) 760 self.assertEqual(list(islice(xrange(10), 1, None, 2)), range(1, 10, 2)) 768 self.assertRaises(TypeError, islice, xrange(10)) [all …]
|
D | test_zipfile64.py | 38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000)) 105 for i in xrange(numfiles): 112 for i in xrange(numfiles):
|
D | test_list.py | 33 self.assertRaises(MemoryError, list, xrange(sys.maxint // 2)) 70 for i in xrange(len(counts)):
|
D | test_bisect.py | 127 for i in xrange(n): 128 data = [randrange(0, n, 2) for j in xrange(i)] 144 for lo in xrange(4): 146 for hi in xrange(3,8): 187 for i in xrange(n): 310 for i in xrange(len(counts)):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/ |
D | Numbers.py | 11 for i in xrange(self.rounds): 195 for i in xrange(self.rounds): 207 for i in xrange(self.rounds): 391 for i in xrange(self.rounds): 403 for i in xrange(self.rounds): 587 for i in xrange(self.rounds): 599 for i in xrange(self.rounds): 783 for i in xrange(self.rounds):
|
D | Exceptions.py | 13 for i in xrange(self.rounds): 51 for i in xrange(self.rounds): 63 for i in xrange(self.rounds): 690 for i in xrange(self.rounds):
|
D | Imports.py | 15 for i in xrange(self.rounds): 48 for i in xrange(self.rounds): 60 for i in xrange(self.rounds): 93 for i in xrange(self.rounds): 104 for i in xrange(self.rounds): 137 for i in xrange(self.rounds):
|
D | Lists.py | 14 for i in xrange(self.rounds): 130 for i in xrange(self.rounds): 144 for i in xrange(self.rounds): 163 for i in xrange(self.rounds): 175 for i in xrange(self.rounds): 294 for i in xrange(self.rounds): 307 for i in xrange(self.rounds): 320 for i in xrange(self.rounds): 334 for i in xrange(self.rounds): 349 for i in xrange(self.rounds):
|
D | With.py | 20 for i in xrange(self.rounds): 46 for i in xrange(self.rounds): 68 for i in xrange(self.rounds): 153 for i in xrange(self.rounds): 174 for i in xrange(self.rounds): 189 for i in xrange(self.rounds):
|
D | Dict.py | 11 for i in xrange(self.rounds): 75 for i in xrange(self.rounds): 88 for i in xrange(self.rounds): 164 for i in xrange(self.rounds): 177 for i in xrange(self.rounds): 253 for i in xrange(self.rounds): 266 for i in xrange(self.rounds): 342 for i in xrange(self.rounds): 356 for i in xrange(self.rounds): 503 for i in xrange(self.rounds):
|
D | Strings.py | 16 for i in xrange(self.rounds): 82 for i in xrange(self.rounds): 98 for i in xrange(self.rounds): 164 for i in xrange(self.rounds): 180 for i in xrange(self.rounds): 246 for i in xrange(self.rounds): 258 for i in xrange(self.rounds): 321 for i in xrange(self.rounds): 335 for i in xrange(self.rounds): 381 for i in xrange(self.rounds): [all …]
|
D | Unicode.py | 21 for i in xrange(self.rounds): 87 for i in xrange(self.rounds): 103 for i in xrange(self.rounds): 169 for i in xrange(self.rounds): 181 for i in xrange(self.rounds): 244 for i in xrange(self.rounds): 258 for i in xrange(self.rounds): 304 for i in xrange(self.rounds): 322 for i in xrange(self.rounds): 379 for i in xrange(self.rounds): [all …]
|
D | Calls.py | 27 for i in xrange(self.rounds): 107 for i in xrange(self.rounds): 128 for i in xrange(self.rounds): 165 for i in xrange(self.rounds): 185 for i in xrange(self.rounds): 286 for i in xrange(self.rounds): 322 for i in xrange(self.rounds): 428 for i in xrange(self.rounds): 449 for i in xrange(self.rounds): 466 for i in xrange(self.rounds):
|
D | Constructs.py | 12 for i in xrange(self.rounds): 467 for i in xrange(self.rounds): 481 for i in xrange(self.rounds): 492 for i in xrange(self.rounds): 504 for i in xrange(self.rounds): 563 for i in xrange(self.rounds):
|
D | Instances.py | 29 for i in xrange(self.rounds): 65 for i in xrange(self.rounds):
|
D | NewInstances.py | 38 for i in xrange(self.rounds): 74 for i in xrange(self.rounds):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/iobench/ |
D | iobench.py | 20 xrange 22 xrange = range variable 105 for i in xrange(0, size - 1): 115 for i in xrange(0, size - 1, 1000): 139 for i in xrange(0, len(source)): 146 for i in xrange(0, len(source), 20): 153 for i in xrange(0, len(source), 4096): 160 for i in xrange(0, len(source), 1000000): 169 for i in xrange(0, len(source)): 177 for i in xrange(0, len(source), 20): [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | hmac.py | 8 trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)]) 9 trans_36 = "".join ([chr (x ^ 0x36) for x in xrange(256)])
|