Title: CoroWrapper breaks gen.throw
Type: crash Stage:
Components: asyncio Versions: Python 3.6, Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Chris Seto, gvanrossum, vstinner, yselivanov
Priority: normal Keywords: patch

Created on 2015-10-13 17:32 by Chris Seto, last changed 2015-10-13 17:40 by Chris Seto.

File name Uploaded Description Edit Chris Seto, 2015-10-13 17:32 Example code snippet that crashes
corowrapper.diff Chris Seto, 2015-10-13 17:40 Diff that address the referenced problem review
Messages (1)
msg252942 - (view) Author: Chris Seto (Chris Seto) * Date: 2015-10-13 17:32
When asyncio.coroutines._DEBUG is set to True all coroutines are wrapped in a CoroWrapper.
The definition of CoroWrapper.throw only excepts a single argument, exc.
It should accept an exception info tuple as returned from sys.exc_info just as normal generators do.
Date User Action Args
2015-10-13 17:40:14Chris Setosetfiles: + corowrapper.diff
keywords: + patch
2015-10-13 17:32:29Chris Setocreate