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

Clarify why comparing things to none is discouraged #143

Open
gandhis1 opened this issue Jan 2, 2020 · 1 comment
Open

Clarify why comparing things to none is discouraged #143

gandhis1 opened this issue Jan 2, 2020 · 1 comment

Comments

@gandhis1
Copy link

gandhis1 commented Jan 2, 2020

This page: http://docs.quantifiedcode.com/python-anti-patterns/readability/comparison_to_none.html

Is a little tautological, i.e. "it is preferred". I think it could elaborate more on why the == operator it is not preferred.

This could be used as a reference:

https://stackoverflow.com/questions/3257919/what-is-the-difference-between-is-none-and-none

@adewes
Copy link
Member

adewes commented Feb 29, 2020

Cool! Do you want to make a PR with this suggested edit?

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

2 participants