Roundup Robot added the comment:
New changeset a2928dd2fde4 by Richard Oudkerk in branch 'default':
Correct issue number for c4f92b597074 in Misc/NEWS from #13813 to #13831
http://hg.python.org/cpython/rev/a2928dd2fde4
--
nosy: +python-dev
___
Python
Changes by Richard Oudkerk shibt...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13831
___
Richard Oudkerk added the comment:
The relevant changeset was c4f92b597074, but I wrote the wrong issue number in
the commit message and Misc/NEWS.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13831
Richard Oudkerk added the comment:
Attached is a patch for 3.4 which uses the __cause__ hack to embed the remote
traceback in the local traceback. It will not work for 2.x though.
import multiprocessing, subprocess
with multiprocessing.Pool() as p: p.apply(subprocess.Popen, (1,))
...
Richard Oudkerk added the comment:
It might be possible to come up with a hack so that when the exception is
unpickled in the main process it gets a secondary exception chained to it using
__cause__ or __context__ whose stringification contains the stringification of
the original traceback.
Richard Oudkerk added the comment:
Pickling an exception (assuming it works) does not capture the traceback.
Doing so would be difficult/impossible since the traceback refers to a linked
list of frames, and each frame has references to lots of other stuff like the
code object, the global
Changes by Paul Winkler pw_li...@slinkp.com:
--
nosy: +slinkp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13831
___
___
Python-bugs-list mailing
Changes by Paul Winkler pw_li...@slinkp.com:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13831
___
___
Python-bugs-list
New submission from Faheem Mitha fah...@faheem.info:
The documentation in
http://docs.python.org/library/multiprocessing.html#module-multiprocessing.pool
says
class multiprocessing.pool.AsyncResult¶
The class of the result returned by Pool.apply_async() and Pool.map_async().
get([timeout])