This is due to caching used by python. Python caches small integers.
https://stackoverflow.com/questions/3402679/identifying-objects-why-does-the-returned-value-from-id-change
– Ankur SharmaAug 16 '17 at 05:10
1
Possible duplicate of [identifying objects, why does the returned value from id(...) change?](https://stackoverflow.com/questions/3402679/identifying-objects-why-does-the-returned-value-from-id-change)
– wmorrellAug 16 '17 at 05:13