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

Syntax error dependent on size of number #306

Open
jneb opened this issue Feb 3, 2023 · 0 comments
Open

Syntax error dependent on size of number #306

jneb opened this issue Feb 3, 2023 · 0 comments

Comments

@jneb
Copy link

jneb commented Feb 3, 2023

How about this one:

>>> 4 ** 300 == 8 ** 200
True
>>> 4 ** 300 is 8 ** 200
False

>>> 4 ** 30 is 8 ** 20
SyntaxWarning: "is" with a literal. Did you mean "=="?
  4 ** 30 is 8 ** 20
True
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

1 participant