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

SyntaxWarning: "is" with a literal. Did you mean "=="? #5

Closed
beucismis opened this issue May 2, 2021 · 0 comments
Closed

SyntaxWarning: "is" with a literal. Did you mean "=="? #5

beucismis opened this issue May 2, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@beucismis
Copy link
Contributor

Hi, This is a new warning added in Python 3.8 (release notes). There’s a subtle difference between the Python identity operator (is) and the equality operator (==). The "==" operator compares the value or equality of two objects, whereas the Python "is" operator checks whether two variables point to the same object in memory.

screenshot

We can filter the warning (library/warnings) or replace the "is" statement with "==".

@strboul strboul added bug Something isn't working good first issue Good for newcomers labels May 7, 2021
strboul added a commit that referenced this issue Jul 30, 2022
strboul added a commit that referenced this issue Nov 3, 2022
- Remove check_text and move to my personal dotfiles bin
- Update README hero image
- Make Directory include_hidden kw only
- Standardize errors, system exit
- Bump up and update GHA modules
- Add trove classifiers to setup.py
- Check with '==' instead of 'is' (Closes #5)
- Add flake8 to pre-commit
- Update utils.display_table
- GHA when releasing, wait for other publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants