[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

Davin Potts report at bugs.python.org
Tue Sep 6 17:54:35 EDT 2016


Davin Potts added the comment:

Reading through issue1692335 provides a sense of the concerns surrounding the patches they applied to the 3.x branches.  Attempting to backport those patches to the 2.7 branch involves non-trivial risk, magnified by the now numerous differences between those branches.

If we had a reasonable workaround to use in 2.7, that would simplify things.

Example workaround that produces behavior in 2.7.12 very like what's observed when using 3.5 or 3.6:
        try:
            subprocess.check_call(['dcon'], stdout=fh, stderr=fh)
        except subprocess.CalledProcessError as cpe:
            raise Exception(str(cpe))

----------
assignee: sbt -> davin

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9400>
_______________________________________


More information about the Python-bugs-list mailing list