We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import contextlib @contextlib.contextmanager def test(): yield with test(): raise Exception
produces the following traceback:
Traceback (most recent call last): File "...\contextlib.py", line 77, in __exit__ File "<stdin>", line 3, in test Exception
instead of the expected:
Traceback (most recent call last): File "<stdin>", line 2, in <module> Exception
The text was updated successfully, but these errors were encountered:
Might be equivalent to:
import sys def test2(): yield try: gen = test2() raise Exception() except: try: gen.throw(*sys.exc_info()) except: pass raise
which gives:
Traceback (most recent call last): File "<stdin>", line 6, in <module> File "<stdin>", line 0, in test2 Exception
instead of:
Traceback (most recent call last): File "<stdin>", line 3, in <module> Exception
Sorry, something went wrong.
Same as IronLanguages/ironpython2#493?
Successfully merging a pull request may close this issue.
produces the following traceback:
instead of the expected:
The text was updated successfully, but these errors were encountered: