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

Remove assertion with side effect #1348

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

bgedik
Copy link
Contributor

@bgedik bgedik commented Jan 18, 2018

When running Python code with PYTHONOPTIMIZE=1 assertions are removed. Needless to say, an assertion should never have a side effect that is critical for the program's execution. @dpkp You seem to have ignored the following: #1184 but I was getting the same symptoms and it took quite some time to figure out the cause.

@dpkp
Copy link
Owner

dpkp commented Jan 18, 2018

Well done!

@bgedik
Copy link
Contributor Author

bgedik commented Jan 19, 2018

I don't think the failure is relevant.

@dpkp dpkp merged commit bfa6e20 into dpkp:master Jan 23, 2018
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

Successfully merging this pull request may close these issues.

2 participants