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

Class ExceptionWithTraceback

Lib/multiprocessing/pool.py:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 return self.tb
62
63class ExceptionWithTraceback:
64 def __init__(self, exc, tb):
65 tb = traceback.format_exception(type(exc), exc, tb)
66 tb = ''.join(tb)
67 self.exc = exc
68 self.tb = '\n"""\n%s"""' % tb
69 def __reduce__(self):
70 return rebuild_exc, (self.exc, self.tb)
71
72def rebuild_exc(exc, tb):
73 exc.__cause__ = RemoteTraceback(tb)

Callers 1

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…