Skip to content

_Framework.ControlElement.traceback (runtime)

Live 11 — Live Object Model & framework reference (descriptions and signatures).

Functions

clear_frames(tb)

extract_stack(f=None, limit=None)

extract_tb(tb, limit=None)

format_exc(limit=None, chain=True)

format_exception(etype, value, tb, limit=None, chain=True)

format_exception_only(etype, value)

format_list(extracted_list)

format_stack(f=None, limit=None)

format_tb(tb, limit=None)

walk_stack(f)

walk_tb(tb)

Classes

class FrameSummary

Properties

  • line

Methods

__init__(self, filename, lineno, name, *, lookup_line=True, locals=None, line=None)

Initialize self. See help(type(self)) for accurate signature.

Attributes

  • _line = <member '_line' of 'FrameSummary' objects>
  • filename = <member 'filename' of 'FrameSummary' objects>
  • lineno = <member 'lineno' of 'FrameSummary' objects>
  • locals = <member 'locals' of 'FrameSummary' objects>
  • name = <member 'name' of 'FrameSummary' objects>

class StackSummary(list)

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

append(self, object, /)

Append object to the end of the list.

clear(self, /)

Remove all items from list.

copy(self, /)

Return a shallow copy of the list.

count(self, value, /)

Return number of occurrences of value.

extend(self, iterable, /)

Extend list by appending elements from the iterable.

extract(frame_gen, *, limit=None, lookup_lines=True, capture_locals=False)
format(self)
from_list(a_list)
index(self, value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

insert(self, index, object, /)

Insert object before index.

pop(self, index=-1, /)

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove(self, value, /)

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse(self, /)

Reverse IN PLACE.

sort(self, /, *, key=None, reverse=False)

Stable sort IN PLACE.

class TracebackException

Methods

__init__(self, exc_type, exc_value, exc_traceback, *, limit=None, lookup_lines=True, capture_locals=False, _seen=None)

Initialize self. See help(type(self)) for accurate signature.

_load_lines(self)
format(self, *, chain=True)
format_exception_only(self)
from_exception(exc, *args, **kwargs)