Language Features

PyOperator

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

Other Methods

.abs()Neutral
#
Signature
abs(a)

Same as abs(a).

.add()Neutral
#
Signature
add(a, b)

Same as a + b.

.and_()Neutral
#
Signature
and_(a, b)

Same as a & b.

.call()Neutral
#
Signature
call(obj, args, kwargs)

Same as obj(*args, **kwargs).

.concat()Neutral
#
Signature
concat(a, b)

Same as a + b, for a and b sequences.

.contains()Neutral
#
Signature
contains(a, b)

Same as b in a (note reversed operands).

.countOf()Neutral
#
Signature
countOf(a, b)

Return the number of items in a which are, or which equal, b.

.delitem()Neutral
#
Signature
delitem(a, b)

Same as del a[b].

.eq()Neutral
#
Signature
eq(a, b)

Same as a == b.

.floordiv()Neutral
#
Signature
floordiv(a, b)

Same as a // b.

Fully-Qualified Names

FQNField
operatorfqns[0]

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

Import

rule.py
import operator