Language Features

PyReadline

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

Other Methods

.add_history()Neutral
#
Signature
add_history(string)

Add an item to the history buffer.

.append_history_file()Neutral
#
Signature
append_history_file(nelements, filename)

Append the last nelements items of the history list to file.

.clear_history()Neutral
#
Signature
clear_history()

Clear the current readline history.

.get_begidx()Neutral
#
Signature
get_begidx()

Get the beginning index of the completion scope.

.get_completer()Neutral
#
Signature
get_completer()

Get the current completer function.

.get_completer_delims()Neutral
#
Signature
get_completer_delims()

Get the word delimiters for completion.

.get_completion_type()Neutral
#
Signature
get_completion_type()

Get the type of completion being attempted.

.get_current_history_length()Neutral
#
Signature
get_current_history_length()

Return the current (not the maximum) length of history.

.get_endidx()Neutral
#
Signature
get_endidx()

Get the ending index of the completion scope.

.get_history_item()Neutral
#
Signature
get_history_item(index)

Return the current contents of history item at one-based index.

Fully-Qualified Names

FQNField
readlinefqns[0]

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

Import

rule.py
import readline