This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients benjamin.peterson, brett.cannon, emptysquare, gvanrossum, larry, martin.panter, ncoghlan, pitrou, serhiy.storchaka, vstinner, yselivanov
Date 2015-11-17.21:36:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Regarding the second bug, did you consider that the exception thrown to the generator can already have __context__ set?

    try: raise ValueError("Context outside of generator")
    except ValueError as ex: raise SubError() from ex
except SubError as ex:
    coro.throw(ex)  # ex.__context__ is a ValueError

I guess either one context could trump the other, or we could to follow the chain of contexts and append the other chain at the end. Both these ideas seem a bit ugly though.
Date User Action Args
2015-11-17 21:36:40martin.pantersetrecipients: + martin.panter, gvanrossum, brett.cannon, ncoghlan, pitrou, vstinner, larry, benjamin.peterson, serhiy.storchaka, yselivanov, emptysquare
2015-11-17 21:36:40martin.pantersetmessageid: <>
2015-11-17 21:36:40martin.panterlinkissue25612 messages
2015-11-17 21:36:40martin.pantercreate