Language Features

PyCollections

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

Other Methods

.namedtuple()Neutral
#
Signature
namedtuple(typename, field_names, rename, defaults, module)

Returns a new subclass of tuple with named fields.

.ChainMap()Neutral
#
Signature
ChainMap(...)

A ChainMap groups multiple dicts (or other mappings) together

.Counter()Neutral
#
Signature
Counter(...)

Dict subclass for counting hashable items. Sometimes called a bag

.OrderedDict()Neutral
#
Signature
OrderedDict(...)

Dictionary that remembers insertion order

.UserDict()Neutral
#
Signature
UserDict(...)

UserDict class.

.UserList()Neutral
#
Signature
UserList(...)

A more or less complete user-defined wrapper around list objects.

.UserString()Neutral
#
Signature
UserString(...)

UserString class.

.defaultdict()Neutral
#
Signature
defaultdict(...)

defaultdict(default_factory=None, /, [...]) --> dict with default factory

.deque()Neutral
#
Signature
deque(...)

deque([iterable[, maxlen]]) --> deque object

Fully-Qualified Names

FQNField
collectionsfqns[0]

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

Import

rule.py
import collections