title: Is id() function buggy?
body: <p>Take a look at this:</p>
  <p><a href="https://i.stack.imgur.com/doWCF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/doWCF.png" alt="screenshot showing usage of id() function" /></a></p>
  <p>According to python documentation, every object is given a different reference id every session... but when I run this code, as you can see id(1001) is equal to id(1002) until I run the expression <code>id(1001) == id(1002)</code> which is when id of 1001 changes... can anyone tell me how the heck does this work? I did check some other questions that seemed similar but couldn't find an answer.</p>