Quantcast
Channel: identifying objects, why does the returned value from id(...) change? - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by David Z for identifying objects, why does the returned value from id(...) change?

$
0
0

j's id changes because the object named by j changes. First you initialize j to 10, so when you call id(j) you get the id of 10. Then you set j to 11, so after that when you call id(j) you get the id of 11.


Viewing all articles
Browse latest Browse all 9

Trending Articles