[issue37208] Weird exception behaviour in ProcessPoolExecutor
Brian Quinlan
report at bugs.python.org
Fri Jun 14 18:05:05 EDT 2019
Brian Quinlan <brian at sweetapp.com> added the comment:
That's a super interesting bug! It looks like this issue is that your exception can't be round-tripped using pickle i.e.
>>> class PoolBreaker(Exception):
... def __init__(self, num):
... super().__init__()
... self.num = num
...
>>> import pickle
>>> pickle.loads(pickle.dumps(PoolBreaker(5)))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() missing 1 required positional argument: 'num'
----------
assignee: -> bquinlan
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37208>
_______________________________________
More information about the Python-bugs-list
mailing list