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

Use comparison by reference for bool type objects #64

Closed
czgdp1807 opened this issue Dec 26, 2019 · 0 comments · Fixed by #66
Closed

Use comparison by reference for bool type objects #64

czgdp1807 opened this issue Dec 26, 2019 · 0 comments · Fixed by #66

Comments

@czgdp1807
Copy link
Member

Description of the problem

Currently there are many places in the code base which use == and != while comparing bool type objects.
Replace all such occurrences of == <bool-type-object> with is <bool-type-object> and != <bool-type-object> with is not <bool-type-object>. For example, == None with is None and != None with is not None.

Example of the problem

References/Other comments

[1] https://dbader.org/blog/difference-between-is-and-equals-in-python

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

Successfully merging a pull request may close this issue.

1 participant