[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Closing this as a duplicate of https://bugs.python.org/issue29587 It turns out that, as Nathaniel first suggested, this is really just another special case of that issue (the "yield from" case as opposed to the "yield" case). It's just that the particular ex

[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-02 Thread Chris Jerdonek
Chris Jerdonek added the comment: My PR is ready for review: https://github.com/python/cpython/pull/19858 -- ___ Python tracker ___ ___

[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-02 Thread Chris Jerdonek
Change by Chris Jerdonek : -- keywords: +patch pull_requests: +19174 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19858 ___ Python tracker ___ _

[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-01 Thread Chris Jerdonek
New submission from Chris Jerdonek : This issue is about how if a coroutine is wrapped in a Task with asyncio.ensure_future(), then portions of the exception chain can be lost. Specifically, if you run the following code, then ValueError will be raised with exc.__context__ equal to the KeyErr