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
.
↧
Answer by David Z for identifying objects, why does the returned value from id(...) change?
↧