/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_xrange.py | 50 # Check that two xrange objects are equivalent, in the sense of the 52 # xrange objects, so instead of converting to lists and comparing 72 self.assertEqual(list(xrange(3)), [0, 1, 2]) 73 self.assertEqual(list(xrange(1, 5)), [1, 2, 3, 4]) 74 self.assertEqual(list(xrange(0)), []) 75 self.assertEqual(list(xrange(-3)), []) 76 self.assertEqual(list(xrange(1, 10, 3)), [1, 4, 7]) 77 self.assertEqual(list(xrange(5, -5, -3)), [5, 2, -1, -4]) 83 self.assertEqual(list(xrange(a, a+2)), [a, a+1]) 84 self.assertEqual(list(xrange(a+2, a, -1L)), [a+2, a+1] [all...] |
test_genexps.py | 62 ... return (i*i for i in xrange(n)) 67 ... return ((i,j) for i in xrange(3) for j in xrange(n)) 71 ... return ((i,j) for i in xrange(3) for j in xrange(4) if j in xrange(n)) 80 ... return i*i for i in xrange(n) 87 >>> dict(a = i for i in xrange(10)) 94 >>> dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS 131 >>> tupleids = map(id, ((i,i) for i in xrange(10)) [all...] |
test_iterlen.py | 12 For instance, an iterable such as xrange(10) always reports its length as ten, 13 but it=iter(xrange(10)) starts at ten, and then goes to nine after it.next(). 19 This is the case for tuples, xrange objects, and itertools.repeat(). 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) [all...] |
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)):
|
test_deque.py | 32 d = deque(xrange(-5125, -5000)) 33 d.__init__(xrange(200)) 34 for i in xrange(200, 400): 36 for i in reversed(xrange(-200, 0)): 41 left = [d.popleft() for i in xrange(250)] 45 right = [d.pop() for i in xrange(250)] 67 d = deque(xrange(200), maxlen=10) 196 d = deque(xrange(n)) 198 for i in xrange(n): 204 for j in xrange(1-len(l), len(l)) [all...] |
test_random.py | 19 return [self.gen.random() for i in xrange(n)] 72 population = xrange(N) 73 for k in xrange(N+1): 88 return reduce(int.__mul__, xrange(1, n), 1) 89 for k in xrange(n): 92 for i in xrange(trials): 103 self.gen.sample(xrange(20), 2) 118 d = dict((i, complex(i, i)) for i in xrange(N)) 119 for k in xrange(N+1): 146 origseq = [self.gen.random() for i in xrange(10) [all...] |
test_itertools.py | 683 argtypes = ['', 'abc', '', xrange(0), xrange(4), dict(a=1, b=2, c=3), [all...] |
time_hashlib.py | 17 for f in xrange(iterations): 25 for f in xrange(20000): 33 for f in xrange(20000):
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_xrange.py | 50 # Check that two xrange objects are equivalent, in the sense of the 52 # xrange objects, so instead of converting to lists and comparing 72 self.assertEqual(list(xrange(3)), [0, 1, 2]) 73 self.assertEqual(list(xrange(1, 5)), [1, 2, 3, 4]) 74 self.assertEqual(list(xrange(0)), []) 75 self.assertEqual(list(xrange(-3)), []) 76 self.assertEqual(list(xrange(1, 10, 3)), [1, 4, 7]) 77 self.assertEqual(list(xrange(5, -5, -3)), [5, 2, -1, -4]) 83 self.assertEqual(list(xrange(a, a+2)), [a, a+1]) 84 self.assertEqual(list(xrange(a+2, a, -1L)), [a+2, a+1] [all...] |
test_genexps.py | 62 ... return (i*i for i in xrange(n)) 67 ... return ((i,j) for i in xrange(3) for j in xrange(n)) 71 ... return ((i,j) for i in xrange(3) for j in xrange(4) if j in xrange(n)) 80 ... return i*i for i in xrange(n) 87 >>> dict(a = i for i in xrange(10)) 94 >>> dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS 131 >>> tupleids = map(id, ((i,i) for i in xrange(10)) [all...] |
test_iterlen.py | 12 For instance, an iterable such as xrange(10) always reports its length as ten, 13 but it=iter(xrange(10)) starts at ten, and then goes to nine after it.next(). 19 This is the case for tuples, xrange objects, and itertools.repeat(). 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) [all...] |
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)):
|
test_deque.py | 32 d = deque(xrange(-5125, -5000)) 33 d.__init__(xrange(200)) 34 for i in xrange(200, 400): 36 for i in reversed(xrange(-200, 0)): 41 left = [d.popleft() for i in xrange(250)] 45 right = [d.pop() for i in xrange(250)] 67 d = deque(xrange(200), maxlen=10) 196 d = deque(xrange(n)) 198 for i in xrange(n): 204 for j in xrange(1-len(l), len(l)) [all...] |
test_random.py | 19 return [self.gen.random() for i in xrange(n)] 72 population = xrange(N) 73 for k in xrange(N+1): 88 return reduce(int.__mul__, xrange(1, n), 1) 89 for k in xrange(n): 92 for i in xrange(trials): 103 self.gen.sample(xrange(20), 2) 118 d = dict((i, complex(i, i)) for i in xrange(N)) 119 for k in xrange(N+1): 146 origseq = [self.gen.random() for i in xrange(10) [all...] |
test_itertools.py | 683 argtypes = ['', 'abc', '', xrange(0), xrange(4), dict(a=1, b=2, c=3), [all...] |
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
rijndael.py | 66 for i in xrange(255): 73 for i in xrange(1, 255): 83 box = [[0] * 8 for i in xrange(256)] 85 for i in xrange(2, 256): 87 for t in xrange(8): 93 cox = [[0] * 8 for i in xrange(256)] 94 for i in xrange(256): 95 for t in xrange(8): 97 for j in xrange(8): 103 for i in xrange(256) [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/m4/ |
pyrex.m4 | 11 for i in xrange(0, 4): pyrexverhex = (pyrexverhex << 8) + pyrexver[[i]] 14 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
|
/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
rangeobject.h | 10 /* This is about the type 'xrange', not the built-in function range(), which
|
/prebuilts/python/linux-x86/2.7.5/include/python2.7/ |
rangeobject.h | 10 /* This is about the type 'xrange', not the built-in function range(), which
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_xrange.py | 4 """Fixer that changes xrange(...) into range(...).""" 16 (name='range'|name='xrange') trailer< '(' args=any ')' > 29 if name.value == u"xrange":
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_xrange.py | 4 """Fixer that changes xrange(...) into range(...).""" 16 (name='range'|name='xrange') trailer< '(' args=any ')' > 29 if name.value == u"xrange":
|
/external/chromium_org/tools/python/google/ |
process_utils.py | 160 outputs = [[] for i in xrange(command_num)] 161 procs = [None for i in xrange(command_num)] 162 eofs = [False for i in xrange(command_num)] 174 for i in xrange(command_num): 188 for i in xrange(command_num): 215 for i in xrange(command_num): 221 return [(procs[i].returncode, outputs[i]) for i in xrange(command_num)]
|
/external/chromium_org/tools/perf/metrics/ |
statistics_unittest.py | 16 for _ in xrange(0, iterations): 18 for i in xrange(1, len(samples)): 23 for i in xrange(1, len(samples)-1): 63 for _ in xrange(0, 10): 68 for _ in xrange(1, num_samples):
|
/external/llvm/test/CodeGen/SystemZ/Large/ |
branch-range-07.py | 41 for i in xrange(branch_blocks - 1, -1, -1): 53 for i in xrange(0, main_size, 6): 60 for i in xrange(branch_blocks):
|
branch-range-08.py | 42 for i in xrange(branch_blocks - 1, -1, -1): 54 for i in xrange(0, main_size, 6): 61 for i in xrange(branch_blocks):
|