class documentation

class Frame:

View In Hierarchy

A single frame in a traceback.
Method __init__ Undocumented
Method eval Evaluate code in the context of the frame.
Method get​_annotated​_lines Helper function that returns lines with extra information.
Method get​_context​_lines Undocumented
Method render Render a single frame in a traceback.
Method render​_line​_context Undocumented
Method render​_text Undocumented
Instance Variable code Undocumented
Instance Variable filename Undocumented
Instance Variable function​_name Undocumented
Instance Variable globals Undocumented
Instance Variable hide Undocumented
Instance Variable info Undocumented
Instance Variable lineno Undocumented
Instance Variable loader Undocumented
Instance Variable locals Undocumented
Instance Variable module Undocumented
Property console Undocumented
Property current​_line Undocumented
Property id Undocumented
Property is​_library Undocumented
Property sourcelines The sourcecode of the file as list of strings.
def __init__(self, exc_type, exc_value, tb):

Undocumented

Parameters
exc​_type:t.Type[BaseException]Undocumented
exc​_value:BaseExceptionUndocumented
tb:TracebackTypeUndocumented
def eval(self, code, mode='single'):
Evaluate code in the context of the frame.
Parameters
code:t.Union[str, CodeType]Undocumented
mode:strUndocumented
Returns
t.AnyUndocumented
def get_annotated_lines(self):
Helper function that returns lines with extra information.
Returns
t.List[Line]Undocumented
def get_context_lines(self, context=5):

Undocumented

Parameters
context:intUndocumented
Returns
t.Tuple[t.List[str], str, t.List[str]]Undocumented
def render(self, mark_lib=True):
Render a single frame in a traceback.
Parameters
mark​_lib:boolUndocumented
Returns
strUndocumented
def render_line_context(self):

Undocumented

Returns
strUndocumented
def render_text(self):

Undocumented

Returns
strUndocumented
code =

Undocumented

filename =

Undocumented

function_name =

Undocumented

globals =

Undocumented

hide =

Undocumented

info =

Undocumented

lineno =

Undocumented

loader =

Undocumented

locals =

Undocumented

module =

Undocumented

@cached_property
console: Console =

Undocumented

@property
current_line: str =

Undocumented

@property
id: int =

Undocumented

@cached_property
is_library: bool =

Undocumented

@cached_property
sourcelines: t.List[str] =
The sourcecode of the file as list of strings.