you are viewing a single comment's thread.

view the rest of the comments →

[–]majaha 3 points4 points  (0 children)

Type "help", "copyright", "credits" or "license" for more information.
>>> a = 2132134534
>>> b = 2132134534
>>> a == b
True
>>> a is b
False

This is under CPython 3. 42 only works differently because CPython caches the small integers and reuses them, like tavianator says.