/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | this.py | 25 for i in range(26):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_pow.py | 7 for i in range(-1000, 1000):
13 for i in range(-100, 100):
17 for i in range(0,31):
22 for i in range(-10, 0) + range(1, 10):
24 for j in range(1, 11):
29 for i in range(1, 100):
47 for i in range(il, ih+1):
48 for j in range(jl, jh+1):
49 for k in range(k [all...] |
H A D | test_itertools.py | 53 return prod(range(1, n+1))
84 self.assertEqual(list(combinations(range(4), 3)),
93 indices = range(r)
96 for i in reversed(range(r)):
102 for j in range(i+1, r):
110 for indices in permutations(range(n), r):
118 for indices in combinations_with_replacement(range(n), r):
122 for n in range(7):
123 values = [5*x-12 for x in range(n)]
124 for r in range( [all...] |
H A D | test_iter.py | 72 self.check_iterator(iter(range(10)), range(10))
76 seq = range(10)
83 self.check_for_loop(iter(range(10)), range(10))
87 seq = range(3)
97 seq = range(3)
104 seq = range(3)
110 self.check_for_loop(IteratingSequenceClass(10), range(10))
114 self.check_iterator(iter(IteratingSequenceClass(10)), range(1 [all...] |
H A D | test_dictcomps.py | 5 >>> { k: None for k in range(10) }
10 >>> { k: k+10 for k in range(10) }
14 >>> { k: g for k in range(10) }
17 >>> { k: v for k in range(10) for v in range(10) if k == v }
20 >>> { k: v for v in range(10) for k in range(v*9, v*10) }
47 for i in range(len(counts)):
|
H A D | test_setcomps.py | 6 >>> sum({i*i for i in range(100) if i&1 == 1})
16 >>> list(sorted({(i,j) for i in range(3) for j in range(4)}))
21 >>> list(sorted({(i,j) for i in range(4) for j in range(i)}))
27 >>> sum({i*i for i in range(100)})
46 Make a nested set comprehension that acts like set(range())
49 ... return {i for i in range(n)}
55 >>> lrange = lambda n: {i for i in range(n)}
62 ... for x in {i for i in range( [all...] |
H A D | test_sort.py | 45 for power in range(1, 10):
47 sizes.extend(range(n-1, n+2))
79 x = range(n)
142 L = [C() for i in range(50)]
148 L = range(50)
151 self.assertEqual(L, range(50))
156 for i in range(20):
208 data = range(-2,2)
214 data = range(10)
217 data[:] = range(2 [all...] |
H A D | fork_wait.py | 38 for i in range(10):
50 for i in range(NUM_THREADS):
57 self.assertEqual(a, range(NUM_THREADS))
|
H A D | test_mhlib.py | 124 for i in range(5, 101)+range(101, 201, 2):
206 eq(all, range(5, 101)+range(101, 201, 2))
215 seqeq('5-55', range(5, 56))
216 seqeq('90-108', range(90, 101)+range(101, 109, 2))
217 seqeq('90-108', range(90, 101)+range(101, 109, 2))
219 seqeq('10:10', range(1 [all...] |
H A D | test_pprint.py | 37 self.a = range(100)
38 self.b = range(200)
121 tuple2((1,2)), tuple3((1,2)), tuple3(range(100)),
122 [3,4], list2([3,4]), list3([3,4]), list3(range(100)),
124 range(10, -11, -1)
154 o = range(100)
159 o = tuple(range(100))
165 o = range(100)
171 o1 = list(range(10))
209 self.assertEqual(pprint.pformat(set(range( [all...] |
H A D | sortperf.py | 46 for i in range(10):
99 for dummy in range(3):
107 L[-10:] = [random.random() for dummy in range(10)]
134 L = range(half - 1, -1, -1)
135 L.extend(range(half))
146 Two arguments: tabulate a range (inclusive).
150 # default range (inclusive)
157 # two arguments: specify range
165 r = range(k1, k2+1) # include the end point
|
H A D | reperf.py | 14 for i in range(n):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/OrderedCollectionTest/ |
H A D | gentest.sh | 27 shuf --input-range=$RANGE_START-$RANGE_STOP | sed 's/^/insert /' 32 shuf --input-range=$RANGE_START-$RANGE_STOP | sed 's/^/delete /'
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
H A D | beer.py | 16 for i in range(n, 0, -1):
|
H A D | queens.py | 29 for y in range(self.n):
60 for y in range(self.n-1, -1, -1):
62 for x in range(self.n):
|
H A D | find-uname.py | 25 for ix in range(sys.maxunicode+1):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/ |
H A D | loosing_mro_ref.py | 19 for i in range(1000):
|
H A D | mutation_inside_cyclegc.py | 24 for i in range(100):
|
H A D | nasty_eq_vs_dict.py | 38 for i in range(n):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/ |
H A D | clockres.py | 19 spin_loops = range(1000)
29 for i in range(len(values) - 1):
|
H A D | Strings.py | 13 s = join(map(str,range(100)))
14 t = join(map(str,range(1,101)))
79 s = join(map(str,range(100)))
80 t = join(map(str,range(1,101)))
95 s = join(map(str,range(10)))
96 t = join(map(str,range(10))) + "abc"
161 s = join(map(str,range(10)))
162 t = join(map(str,range(10))) + "abc"
177 s = intern(join(map(str,range(10))))
243 s = intern(join(map(str,range(1 [all...] |
H A D | Lists.py | 141 n = range(100)
142 r = range(25)
160 n = range(100)
161 r = range(25)
305 n = range(10) * 10
318 n = range(10) * 10
331 m = range(10)
332 n = range(10)
346 m = range(10)
347 n = range(1 [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/ |
H A D | comparecodecs.py | 17 for i in range(sys.maxunicode):
32 for i in range(256):
|
H A D | mkstringprep.py | 7 for i in range(0, 0x110000):
12 for i in range(0, 0x110000):
30 for i in range(prev, prev+span+1):
40 tuple = " + ".join(["range(%d,%d)" % t for t in tuple])
86 # range
95 for i in range(start, end+1):
130 Cn -= set(range(0xFDD0, 0xFDF0))
132 Cn -= set(range(0xFFFE, 0x110000, 0x10000))
133 Cn -= set(range(0xFFFF, 0x110000, 0x10000))
269 Cc_ascii = Cc & set(range(12 [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
H A D | analyze_dxp.py | 62 for first_inst in range(len(_cumulative_profile)):
63 for second_inst in range(len(_cumulative_profile[first_inst])):
67 for inst in range(len(_cumulative_profile)):
|