Skip to content

Show a note for --strict-equality for unsafe promotions and mention it in the docs #6407

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

Closed
ilevkivskyi opened this issue Feb 15, 2019 · 1 comment

Comments

@ilevkivskyi
Copy link
Member

This is a follow-up for #6370

We should document why type promotions are disabled with --strict-equality. We can give examples like b'abc' == 'abc' in Python 2 vs 3, and (1/3)**10 * 3**10 == 1. We can also show a note with the non-overlapping comparison error in such cases.

@ilevkivskyi
Copy link
Member Author

After all we decided to not special-case promotions for --strict-equality, so this is now irrelevant.

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

No branches or pull requests

1 participant