Roundup Robot added the comment:
New changeset a36b402b099b by Antoine Pitrou in branch 'default':
Issue #21817: When an exception is raised in a task submitted to a
ProcessPoolExecutor, the remote traceback is now displayed in the parent
process.
https://hg.python.org/cpython/rev/a36b402b099b
Antoine Pitrou added the comment:
Thank you very much. Everything is now committed.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
Claudiu Popa added the comment:
Here's the updated version of this patch.
--
type: behavior - enhancement
versions: -Python 3.4
Added file: http://bugs.python.org/file37738/issue21817_1.patch
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Hi, here are some comments about the patch:
- RemoteTraceback, ExceptionWithTraceback, rebuild_exc should be private (i.e.
with a leading underscore)
- in test_traceback, you can use the context manager form of assertRaises
instead of the try..except..else
Claudiu Popa added the comment:
Thanks, Antoine! Here's the new version, with your comments addressed.
--
Added file: http://bugs.python.org/file37744/issue21817_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
Claudiu Popa added the comment:
Any type of feedback regarding this approach will be appreciated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
Ram Rachum added the comment:
Hi Claudiu, sorry for the silence.
This output looks great. I'd love to see that go into Python.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
Changes by Ned Deily n...@acm.org:
--
nosy: +bquinlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
___
Python-bugs-list mailing list
Claudiu Popa added the comment:
Hello. Here's a patch based on c4f92b597074, which adds something similar to
multiprocessing.pool.
The output after the patch is:
concurrent.futures.process.RemoteTraceback:
Traceback (most recent call last):
File
New submission from Ram Rachum:
When you use `concurrent.futures.ProcessPoolExecutor` and an exception is
raised in the created process, it doesn't show you the traceback. This makes
debugging very annoying.
Example file:
#!python
import sys
import concurrent.futures
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
___
11 matches
Mail list logo