Lines Matching defs:repeat
1086 Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely.
2231 Py_ssize_t nargs, npools, repeat=1;
2237 char *kwlist[] = {"repeat", 0};
2242 kwlist, &repeat)) {
2247 if (repeat < 0) {
2249 "repeat argument cannot be negative");
2255 if (repeat == 0) {
2259 if ((size_t)nargs > PY_SSIZE_T_MAX/sizeof(Py_ssize_t)/repeat) {
2260 PyErr_SetString(PyExc_OverflowError, "repeat argument too large");
2264 npools = nargs * repeat;
2515 "product(*iterables, repeat=1) --> product object\n\
2523 of repetitions with the optional repeat keyword argument. For example,\n\
2524 product(A, repeat=4) means the same as product(A, A, A, A).\n\n\
2908 for indices in product(range(n), repeat=r):
4148 Step may be zero -- effectively a slow version of repeat(cnt).
4375 /* repeat object ************************************************************/
4396 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|n:repeat", kwargs,
4465 /* unpickle this so that a new repeat iterator is constructed with an
4481 "repeat(object [,times]) -> create an iterator which returns the object\n\
4487 "itertools.repeat", /* tp_name */
4815 repeat(elem [,n]) --> elem, elem, elem, ... endlessly or up to n times\n\
4834 product(p, q, ... [repeat=1]) --> cartesian product\n\