Language Features

PyPydoc

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

Other Methods

.allmethods()Neutral
#
Signature
allmethods(cl)

allmethods function.

.apropos()Neutral
#
Signature
apropos(key)

Print all the one-line module summaries that contain a substring.

.browse()Neutral
#
Signature
browse(port, open_browser, hostname)

Start the enhanced pydoc web server and open a web browser.

.classify_class_attrs()Neutral
#
Signature
classify_class_attrs(object)

Wrap inspect.classify_class_attrs, with fixup for data descriptors and bound methods.

.classname()Neutral
#
Signature
classname(object, modname)

Get a class name and qualify it with a module name if necessary.

.cli()Neutral
#
Signature
cli()

Command-line interface (looks at sys.argv to decide what to do).

.cram()Neutral
#
Signature
cram(text, maxlen)

Omit part of a string if needed to make it fit in a maximum length.

.describe()Neutral
#
Signature
describe(thing)

Produce a short description of the given thing.

.doc()Neutral
#
Signature
doc(thing, title, forceload, output, is_cli)

Display text documentation, given an object or a path to an object.

.format_exception_only()Neutral
#
Signature
format_exception_only(exc, value)

Format the exception part of a traceback.

Fully-Qualified Names

FQNField
pydocfqns[0]

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

Import

rule.py
import pydoc