Y
Hacker News
new
|
ask
|
show
|
jobs
by
nslocum
4719 days ago
After a little trial and error, it appears that Python caches the values in range(-5,257).
> -6 + 0 is -6 False > -5 + 0 is -5 True > 256 + 0 is 256 True > 257 + 0 is 257 False
1 comments
wahnfrieden
4719 days ago
(CPython)
link