Language Features

PySys

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

Other Methods

.addaudithook()Neutral
#
Signature
addaudithook(hook)

Adds a new audit hook callback.

.audit()Neutral
#
Signature
audit()

audit(event, *args)

.breakpointhook()Neutral
#
Signature
breakpointhook()

breakpointhook(*args, **kws)

.call_tracing()Neutral
#
Signature
call_tracing(func, args)

Call func(*args), while tracing is enabled.

.displayhook()Neutral
#
Signature
displayhook(object)

Print an object to sys.stdout and also save it in builtins._

.exc_info()Neutral
#
Signature
exc_info()

Return current exception information: (type, value, traceback).

.excepthook()Neutral
#
Signature
excepthook(exctype, value, traceback)

Handle an exception by displaying it with a traceback on sys.stderr.

.exception()Neutral
#
Signature
exception()

Return the current exception.

.exit()Neutral
#
Signature
exit(status)

Exit the interpreter by raising SystemExit(status).

.get_asyncgen_hooks()Neutral
#
Signature
get_asyncgen_hooks()

Return the installed asynchronous generators hooks.

Fully-Qualified Names

FQNField
sysfqns[0]

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

Import

rule.py
import sys