Home
last modified time | relevance | path

Searched refs:xrange (Results 1 – 25 of 158) sorted by relevance

1234567

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_xrange.py50 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 …]
Dtest_deque.py31 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 …]
Dtest_random.py19 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 …]
Dtest_iterlen.py67 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 …]
Dtest_strtod.py116 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 …]
Dtest_structseq.py16 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)):
Dtime_hashlib.py17 for f in xrange(iterations):
25 for f in xrange(20000):
33 for f in xrange(20000):
Dtest_itertools.py675 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 …]
Dtest_zipfile64.py38 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):
Dtest_list.py33 self.assertRaises(MemoryError, list, xrange(sys.maxint // 2))
70 for i in xrange(len(counts)):
Dtest_bisect.py127 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/
DNumbers.py11 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):
DExceptions.py13 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):
DImports.py15 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):
DLists.py14 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):
DWith.py20 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):
DDict.py11 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):
DStrings.py16 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 …]
DUnicode.py21 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 …]
DCalls.py27 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):
DConstructs.py12 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):
DInstances.py29 for i in xrange(self.rounds):
65 for i in xrange(self.rounds):
DNewInstances.py38 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/
Diobench.py20 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/
Dhmac.py8 trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)])
9 trans_36 = "".join ([chr (x ^ 0x36) for x in xrange(256)])

1234567