2 ms·
Python has > a = 100 > a is 100 True > a = 1000 > a is 1000 False
by strbean 7y ago
Python has
> a = 100
> a is 100
True
> a = 1000
> a is 1000
False
- blotter_paper 7y agoCPython stores integers above 256 as individual pieces of data, but a normal Python script doesn't. I think it's technically undefined behavior.