Language Features

PyLinecache

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

Other Methods

.checkcache()Neutral
#
Signature
checkcache(filename)

Discard cache entries that are out of date.

.clearcache()Neutral
#
Signature
clearcache()

Clear the cache entirely.

.getline()Neutral
#
Signature
getline(filename, lineno, module_globals)

Get a line for a Python source file from the cache.

.getlines()Neutral
#
Signature
getlines(filename, module_globals)

Get the lines for a Python source file from the cache.

.lazycache()Neutral
#
Signature
lazycache(filename, module_globals)

Seed the cache for filename with module_globals.

.updatecache()Neutral
#
Signature
updatecache(filename, module_globals)

Update a cache entry and return its list of lines.

Fully-Qualified Names

FQNField
linecachefqns[0]

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

Import

rule.py
import linecache