Lines Matching defs:iterable
6 "pairwise(iterable, /)\n"
14 pairwise_new_impl(PyTypeObject *type, PyObject *iterable);
20 PyObject *iterable;
30 iterable = PyTuple_GET_ITEM(args, 0);
31 return_value = pairwise_new_impl(type, iterable);
38 "groupby(iterable, key=None)\n"
41 "make an iterator that returns consecutive keys and groups from the iterable\n"
43 " iterable\n"
57 static const char * const _keywords[] = {"iterable", "key", NULL};
114 "teedataobject(iterable, values, next, /)\n"
153 "_tee(iterable, /)\n"
159 itertools__tee_impl(PyTypeObject *type, PyObject *iterable);
165 PyObject *iterable;
175 iterable = PyTuple_GET_ITEM(args, 0);
176 return_value = itertools__tee_impl(type, iterable);
183 "tee($module, iterable, n=2, /)\n"
192 itertools_tee_impl(PyObject *module, PyObject *iterable, Py_ssize_t n);
198 PyObject *iterable;
204 iterable = args[0];
221 return_value = itertools_tee_impl(module, iterable, n);
228 "cycle(iterable, /)\n"
231 "Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely.");
234 itertools_cycle_impl(PyTypeObject *type, PyObject *iterable);
240 PyObject *iterable;
250 iterable = PyTuple_GET_ITEM(args, 0);
251 return_value = itertools_cycle_impl(type, iterable);
258 "dropwhile(predicate, iterable, /)\n"
261 "Drop items from the iterable while predicate(item) is true.\n"
263 "Afterwards, return every element until the iterable is exhausted.");
292 "takewhile(predicate, iterable, /)\n"
295 "Return successive entries from an iterable as long as the predicate evaluates to true for each entry.");
324 "starmap(function, iterable, /)\n"
356 "from_iterable($type, iterable, /)\n"
359 "Alternative chain() constructor taking a single iterable argument that evaluates lazily.");
365 "combinations(iterable, r)\n"
368 "Return successive r-length combinations of elements in the iterable.\n"
373 itertools_combinations_impl(PyTypeObject *type, PyObject *iterable,
380 static const char * const _keywords[] = {"iterable", "r", NULL};
385 PyObject *iterable;
392 iterable = fastargs[0];
405 return_value = itertools_combinations_impl(type, iterable, r);
412 "combinations_with_replacement(iterable, r)\n"
415 "Return successive r-length combinations of elements in the iterable allowing individual elements to have successive repeats.\n"
421 PyObject *iterable,
428 static const char * const _keywords[] = {"iterable", "r", NULL};
433 PyObject *iterable;
440 iterable = fastargs[0];
453 return_value = itertools_combinations_with_replacement_impl(type, iterable, r);
460 "permutations(iterable, r=None)\n"
463 "Return successive r-length permutations of elements in the iterable.\n"
468 itertools_permutations_impl(PyTypeObject *type, PyObject *iterable,
475 static const char * const _keywords[] = {"iterable", "r", NULL};
481 PyObject *iterable;
488 iterable = fastargs[0];
494 return_value = itertools_permutations_impl(type, iterable, robj);
501 "accumulate(iterable, func=None, *, initial=None)\n"
507 itertools_accumulate_impl(PyTypeObject *type, PyObject *iterable,
514 static const char * const _keywords[] = {"iterable", "func", "initial", NULL};
520 PyObject *iterable;
528 iterable = fastargs[0];
544 return_value = itertools_accumulate_impl(type, iterable, binop, initial);
587 "filterfalse(function, iterable, /)\n"
590 "Return those items of iterable for which function(item) is false.\n"