Skip to content

gufo.err.formatter.extend

ExtendFormatter.

ExtendFormatter

Bases: BaseFormatter

Extended output.

Produces extended output with code surroundings and variable values.

iter_format(err)

Iterator yielding human-redable lines.

Process ErrorInfo instance and yield humar-readable lines one-by-one.

Parameters:

Name Type Description Default
err ErrorInfo

ErrorInfo instance

required

Returns:

Type Description
Iterable[str]

Iterator yieldig formatted lines.

iter_vars(fi)

Iterate frame variables and convert them to the readable form.

Parameters:

Name Type Description Default
fi FrameInfo

FrameInfo instance

required

Returns:

Type Description
Iterable[Tuple[str, str]]

Iterable of (var name, var value).