Skip to content
New issue

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

try-finally assertion error #2

Open
seppforcher opened this issue Feb 14, 2017 · 0 comments
Open

try-finally assertion error #2

seppforcher opened this issue Feb 14, 2017 · 0 comments

Comments

@seppforcher
Copy link

Can't believe you never tried this on your own file :)

python2.7 -m compileall fupy.py && python2.7 fupy.py fupy.pyc
Leads to an Assertion Error

I condensed it down to this code snippet, which leads to said assertion error:

try:
    if a:
        raise b
finally:
    pass

A combination of try-finally and a conditional exception raise. May be simpler, but I did not manage to reproduce the error with a smaller piece of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant