Skip to content

Unreachable expressions: treat non-zero ints as truthy #10562

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

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

ikonst
Copy link
Contributor

@ikonst ikonst commented May 31, 2021

Makes 42 or False result in Error: Right operand of "or" is never evaluated when invoked with --warn-unreachable.

@ikonst
Copy link
Contributor Author

ikonst commented Jun 1, 2021

👋 @hauntsaninja

@JelleZijlstra JelleZijlstra merged commit 8853f22 into python:master Jun 1, 2021
@ikonst ikonst deleted the non-zero-int-unreachable branch June 1, 2021 16:13
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