SHARE
TWEET

Untitled

a guest Jan 12th, 2017 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class A():
  2.     pass
  3.    
  4. a = A()
  5. b = A()
  6. id(a)
  7. >>> XXXXXXXX44
  8. id(b)
  9. >>> XXXXXXXX16
  10.    
  11. id(A())
  12. >>> XXXXXXXX88
  13. id(A())
  14. >>> XXXXXXXX88
  15.    
  16. id(A())
  17. >>> XXXXXXXX88
  18. a = A()
  19. >>> XXXXXXXX88
  20. id(A())
  21. >>> XXXXXXXX44
RAW Paste Data
Top