satwikkansal / wtfpython

What the f*ck Python? 😱
Do What The F*ck You Want To Public License
35.51k stars 2.65k forks source link

Syntax error dependent on size of number #306

Open jneb opened 1 year ago

jneb commented 1 year ago

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