You're correct.
Further, there are some odd quirks because of the way Python caches small Integers for efficiency.
> 2 + 2 is 4
True
> 1000 + 1 is 1001
FalseFurther, there are some odd quirks because of the way Python caches small Integers for efficiency.
> 2 + 2 is 4
True
> 1000 + 1 is 1001
Falsehttp://stackoverflow.com/questions/306313/python-is-operator...
> -6 + 0 is -6
False
> -5 + 0 is -5
True
> 256 + 0 is 256
True
> 257 + 0 is 257
False > 2 + 4 is 4
True
I sure hope not.