Language Features

PyImp

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

Other Methods

.acquire_lock()Neutral
#
Signature
acquire_lock()

Acquires the interpreter's import lock for the current thread.

.cache_from_source()Neutral
#
Signature
cache_from_source(path, debug_override)

**DEPRECATED**

.create_dynamic()Neutral
#
Signature
create_dynamic()

Create an extension module.

.find_module()Neutral
#
Signature
find_module(name, path)

**DEPRECATED**

.get_frozen_object()Neutral
#
Signature
get_frozen_object(name, data)

Create a code object for a frozen module.

.get_magic()Neutral
#
Signature
get_magic()

**DEPRECATED**

.get_suffixes()Neutral
#
Signature
get_suffixes()

**DEPRECATED**

.get_tag()Neutral
#
Signature
get_tag()

Return the magic tag for .pyc files.

.init_builtin()Neutral
#
Signature
init_builtin(name)

**DEPRECATED**

.init_frozen()Neutral
#
Signature
init_frozen(name)

Initializes a frozen module.

Fully-Qualified Names

FQNField
impfqns[0]

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

Import

rule.py
import imp