You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Executor.map() exceptions lose the worker traceback and form a cycle #158497
Since gh-108518, the exception that Executor.map() re-raises for a failed call differs from 3.15 in two ways:
ProcessPoolExecutor.map() no longer sets the worker-side traceback as its __cause__, so the traceback only shows raise exc in _MapResultIterator.__next__.
For every executor, the exception is kept alive by a reference cycle through the __next__ frame, together with the frames and locals of the failed call, until the cyclic GC runs.
Activity