New submission from Prasanth Rajendran <mrsha...@gmail.com>:
Under multiprocessing package, in pool.py, when an error occurs on line 122: result = (True, func(*args, **kwds)) The exception "e" has the error message due to execution of the function that is executed in parallel. However, the error message is lost when another error is occurred due to the execution of following line 128: put((job, i, result)) The MaybeEncodingError masks or truncates the original error message, due to the following line at 130: MaybeEncodingError(e, result[1]) where the repr function in the class truncates the message. The final error message has pickling error and the masked error of the actual execution. ---------- components: Library (Lib) messages: 395529 nosy: mrshanth priority: normal severity: normal status: open title: Truncated error message of original function while multiprocessing or multithreading versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44377> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com