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

Method from_traceback

Lib/dis.py:1079–1085  ·  view source on GitHub ↗

Construct a Bytecode from the given traceback

(cls, tb, *, show_caches=False, adaptive=False)

Source from the content-addressed store, hash-verified

1077
1078 @classmethod
1079 def from_traceback(cls, tb, *, show_caches=False, adaptive=False):
1080 """ Construct a Bytecode from the given traceback """
1081 while tb.tb_next:
1082 tb = tb.tb_next
1083 return cls(
1084 tb.tb_frame.f_code, current_offset=tb.tb_lasti, show_caches=show_caches, adaptive=adaptive
1085 )
1086
1087 def info(self):
1088 """Return formatted information about the code object."""

Callers 2

test_from_tracebackMethod · 0.80

Calls 1

clsClass · 0.50

Tested by 2

test_from_tracebackMethod · 0.64