Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeap:

  >>> a = 110
  >>> b = 110
  >>> id(a) == id(b)
  True


[deleted]


Uh, I didn't use assignment between variables; my code is the same as your second example (both variables independently assigned to 110).


Indeed; I was confused by the dekhn's aside.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: