MCPcopy Index your code
hub / github.com/python/cpython / _ExceptionWithTraceback

Class _ExceptionWithTraceback

Lib/concurrent/futures/process.py:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 return self.tb
134
135class _ExceptionWithTraceback:
136 def __init__(self, exc, tb):
137 tb = ''.join(format_exception(type(exc), exc, tb))
138 self.exc = exc
139 # Traceback object needs to be garbage-collected as its frames
140 # contain references to all the objects in the exception scope
141 self.exc.__traceback__ = None
142 self.tb = '\n"""\n%s"""' % tb
143 def __reduce__(self):
144 return _rebuild_exc, (self.exc, self.tb)
145
146def _rebuild_exc(exc, tb):
147 exc.__cause__ = _RemoteTraceback(tb)

Callers 2

_sendback_resultFunction · 0.85
_process_workerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…