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

Method from_exception

Lib/traceback.py:1191–1193  ·  view source on GitHub ↗

Create a TracebackException from an exception.

(cls, exc, *args, **kwargs)

Source from the content-addressed store, hash-verified

1189
1190 @classmethod
1191 def from_exception(cls, exc, *args, **kwargs):
1192 """Create a TracebackException from an exception."""
1193 return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
1194
1195 @property
1196 def exc_type(self):

Calls 1

clsClass · 0.50