You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
I can repro this too -- it's not unique to Windows or to PEP 492 (it fails
the same way with coroutine/yield-from in Python 3.4). It's also not due to
something in contextlib.suppress() or due to having a try/except in the
outer except clause.
@1st1 -- do you have any suggestions? I suspect there's some special-casing
of CancelledError that goes wrong here.
Traceback (most recent call last):
File "t.py", line 47, in <module>
coro.throw(SubError())
File "t.py", line 43, in main
raise
RuntimeError: No active exception to reraise
got SubError
Traceback (most recent call last):
File "t.py", line 19, in <module>
coro.throw(SubError())
File "t.py", line 15, in main
raise
RuntimeError: No active exception to reraise
Activity
gvanrossum commentedon Nov 12, 2015
1st1 commentedon Nov 12, 2015
I might be mistaken here, but it looks like this a bug in CPython...
Outputs:
1st1 commentedon Nov 12, 2015
And if you replace
except MainError:withexcept MainError as e:, andraisewithraise ethen everything works correctly.1st1 commentedon Nov 12, 2015
It's not even a
yield frombug:Outputs:
1st1 commentedon Nov 12, 2015
http://bugs.python.org/issue25612
gvanrossum commentedon Nov 12, 2015