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

Method __init__

Lib/concurrent/futures/process.py:136–142  ·  view source on GitHub ↗
(self, exc, tb)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

format_exceptionFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected