MCPcopy Index your code
hub / github.com/RustPython/RustPython / FrameInfo

Class FrameInfo

Lib/inspect.py:1617–1627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1615
1616_FrameInfo = namedtuple('_FrameInfo', ('frame',) + Traceback._fields)
1617class FrameInfo(_FrameInfo):
1618 def __new__(cls, frame, filename, lineno, function, code_context, index, *, positions=None):
1619 instance = super().__new__(cls, frame, filename, lineno, function, code_context, index)
1620 instance.positions = positions
1621 return instance
1622
1623 def __repr__(self):
1624 return ('FrameInfo(frame={!r}, filename={!r}, lineno={!r}, function={!r}, '
1625 'code_context={!r}, index={!r}, positions={!r})'.format(
1626 self.frame, self.filename, self.lineno, self.function,
1627 self.code_context, self.index, self.positions))
1628
1629def getouterframes(frame, context=1):
1630 """Get a list of records for a frame and all higher (calling) frames.

Callers 2

getouterframesFunction · 0.70
getinnerframesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected