Simple code run in PyCharm and in a terminal:
>>> a = 500
>>> b = 500
Using Python 3.6. So in PyCharm objects with values greater than 256 have the same ID.
a is b in PyCharm reports True. In the terminal it's False.
I'm probably missing something here so i'd be grateful if someone can shine some light. Thanks!