Language Features

PyItertools

Python stdlib module — itertools. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.tee()Neutral
#
Signature
tee(iterable, n)

Returns a tuple of n independent iterators.

.accumulate()Neutral
#
Signature
accumulate(...)

Return series of accumulated sums (or other binary function results).

.chain()Neutral
#
Signature
chain(...)

chain(*iterables) --> chain object

.combinations()Neutral
#
Signature
combinations(...)

Return successive r-length combinations of elements in the iterable.

.combinations_with_replacement()Neutral
#
Signature
combinations_with_replacement(...)

Return successive r-length combinations of elements in the iterable allowing individual elements to have successive repeats.

.compress()Neutral
#
Signature
compress(...)

Return data elements corresponding to true selector elements.

.count()Neutral
#
Signature
count(...)

Return a count object whose .__next__() method returns consecutive values.

.cycle()Neutral
#
Signature
cycle(...)

Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely.

.dropwhile()Neutral
#
Signature
dropwhile(...)

Drop items from the iterable while predicate(item) is true.

.filterfalse()Neutral
#
Signature
filterfalse(...)

Return those items of iterable for which function(item) is false.

Fully-Qualified Names

FQNField
itertoolsfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import itertools