Home
last modified time | relevance | path

Searched refs:repeat (Results 1 – 25 of 30) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtimeit.py189 it = itertools.repeat(None, number)
199 def repeat(self, repeat=default_repeat, number=default_number): argument
220 for i in range(repeat):
230 def repeat(stmt="pass", setup="pass", timer=default_timer, argument
231 repeat=default_repeat, number=default_number):
233 return Timer(stmt, setup, timer).repeat(repeat, number)
263 repeat = default_repeat
272 repeat = int(a)
273 if repeat <= 0:
274 repeat = 1
[all …]
Dheapq.py132 from itertools import islice, repeat, count, imap, izip, tee, chain
235 return map(heappop, repeat(h, min(n, len(h))))
Dcollections.py13 from itertools import repeat as _repeat, chain as _chain, starmap as _starmap
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Dpatcomp.py105 repeat = None
107 repeat = nodes[-1]
111 pattern = self.compile_basic(nodes, repeat)
113 if repeat is not None:
114 assert repeat.type == self.syms.Repeater
115 children = repeat.children
139 def compile_basic(self, nodes, repeat=None): argument
169 assert repeat is None
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_operator.py276 self.assertRaises(TypeError, operator.repeat)
277 self.assertRaises(TypeError, operator.repeat, a, None)
278 self.assertTrue(operator.repeat(a, 2) == a+a)
279 self.assertTrue(operator.repeat(a, 1) == a)
280 self.assertTrue(operator.repeat(a, 0) == [])
282 self.assertTrue(operator.repeat(a, 2) == a+a)
283 self.assertTrue(operator.repeat(a, 1) == a)
284 self.assertTrue(operator.repeat(a, 0) == ())
286 self.assertTrue(operator.repeat(a, 2) == a+a)
287 self.assertTrue(operator.repeat(a, 1) == a)
[all …]
Dtest_itertools.py175 for indices in product(range(n), repeat=r):
253 for indices in product(range(n), repeat=r):
285 prod = list(product(s, repeat=r))
319 data = chain.from_iterable(repeat(range(6), n))
320 selectors = chain.from_iterable(repeat((0, 1)))
640 list(product(*args, **dict(repeat=r))))
691 self.assertEqual(list(repeat(object='a', times=3)), ['a', 'a', 'a'])
692 self.assertEqual(zip(xrange(3),repeat('a')),
694 self.assertEqual(list(repeat('a', 3)), ['a', 'a', 'a'])
695 self.assertEqual(take(3, repeat('a')), ['a', 'a', 'a'])
[all …]
Dtest_iterlen.py46 from itertools import repeat
93 self.it = repeat(None, n)
97 self.assertRaises(TypeError, len, repeat(None))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dfancy_getopt.py154 self.repeat = {}
159 repeat = 0
161 long, short, help, repeat = option
179 self.repeat[long] = repeat
284 if val and self.repeat.get(attr) is not None:
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/doc/
Dlua.css91 background-repeat: no-repeat;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dsre.h83 SRE_REPEAT *repeat; member
D_sre.c1003 ctx->u.rep = state->repeat; in SRE_MATCH()
1193 ctx->u.rep->prev = state->repeat; in SRE_MATCH()
1195 state->repeat = ctx->u.rep; in SRE_MATCH()
1199 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1215 ctx->u.rep = state->repeat; in SRE_MATCH()
1267 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1270 state->repeat = ctx->u.rep; in SRE_MATCH()
1278 ctx->u.rep = state->repeat; in SRE_MATCH()
1306 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1313 state->repeat = ctx->u.rep; in SRE_MATCH()
[all …]
Ditertoolsmodule.c1792 Py_ssize_t nargs, npools, repeat=1; in product_new() local
1802 if (!PyArg_ParseTupleAndKeywords(tmpargs, kwds, "|n:product", kwlist, &repeat)) { in product_new()
1807 if (repeat < 0) { in product_new()
1815 nargs = (repeat == 0) ? 0 : PyTuple_GET_SIZE(args); in product_new()
1816 npools = nargs * repeat; in product_new()
Doperator.c294 spam2(repeat,__repeat__,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dsre.h93 SRE_REPEAT *repeat; member
Ditertoolsmodule.c1823 Py_ssize_t nargs, npools, repeat=1; in product_new() local
1833 if (!PyArg_ParseTupleAndKeywords(tmpargs, kwds, "|n:product", kwlist, &repeat)) { in product_new()
1838 if (repeat < 0) { in product_new()
1846 if (repeat == 0) { in product_new()
1850 if ((size_t)nargs > PY_SSIZE_T_MAX/sizeof(Py_ssize_t)/repeat) { in product_new()
1855 npools = nargs * repeat; in product_new()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
Dregparse.c2301 } repeat; member
2403 tok->u.repeat.lower = low; in fetch_range_quantifier()
2404 tok->u.repeat.upper = up; in fetch_range_quantifier()
3167 tok->u.repeat.lower = 0; in fetch_token()
3168 tok->u.repeat.upper = REPEAT_INFINITE; in fetch_token()
3175 tok->u.repeat.lower = 1; in fetch_token()
3176 tok->u.repeat.upper = REPEAT_INFINITE; in fetch_token()
3183 tok->u.repeat.lower = 0; in fetch_token()
3184 tok->u.repeat.upper = 1; in fetch_token()
3189 tok->u.repeat.greedy = 0; in fetch_token()
[all …]
Dregexec.c580 stk->u.repeat.num = (id);\
581 stk->u.repeat.pcode = (pat);\
582 stk->u.repeat.count = 0;\
733 STACK_AT(stk->u.repeat_inc.si)->u.repeat.count--;\
755 STACK_AT(stk->u.repeat_inc.si)->u.repeat.count--;\
775 STACK_AT(stk->u.repeat_inc.si)->u.repeat.count--;\
945 if (k->u.repeat.num == (id)) {\
2550 stkp->u.repeat.count++; in match_at()
2551 if (stkp->u.repeat.count >= reg->repeat_range[mem].upper) { in match_at()
2554 else if (stkp->u.repeat.count >= reg->repeat_range[mem].lower) { in match_at()
[all …]
Dregint.h711 } repeat; member
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
D_sre.c1003 ctx->u.rep = state->repeat; in SRE_MATCH()
1193 ctx->u.rep->prev = state->repeat; in SRE_MATCH()
1195 state->repeat = ctx->u.rep; in SRE_MATCH()
1199 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1215 ctx->u.rep = state->repeat; in SRE_MATCH()
1267 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1270 state->repeat = ctx->u.rep; in SRE_MATCH()
1278 ctx->u.rep = state->repeat; in SRE_MATCH()
1306 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1313 state->repeat = ctx->u.rep; in SRE_MATCH()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
D_sre.c1010 ctx->u.rep = state->repeat; in SRE_MATCH()
1200 ctx->u.rep->prev = state->repeat; in SRE_MATCH()
1202 state->repeat = ctx->u.rep; in SRE_MATCH()
1206 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1222 ctx->u.rep = state->repeat; in SRE_MATCH()
1274 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1277 state->repeat = ctx->u.rep; in SRE_MATCH()
1285 ctx->u.rep = state->repeat; in SRE_MATCH()
1313 state->repeat = ctx->u.rep->prev; in SRE_MATCH()
1320 state->repeat = ctx->u.rep; in SRE_MATCH()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
DdqCopySign.decTest90 -- repeat with negative RHS
Dcopysign.decTest92 -- repeat with negative RHS
DddCopySign.decTest90 -- repeat with negative RHS
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/iobench/
Diobench.py384 it = itertools.repeat(
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcollections.py13 from itertools import repeat as _repeat, chain as _chain, starmap as _starmap

12