Guest User

Untitled

a guest
Jun 21st, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Ideas for Garbage Collection
  2. x = list('a','b','c','d')
  3. y = x;
  4. // x and y point to the same list in memory
  5. y.replace(2, 'e')
  6. // x and y point to different lists in memory
  7. // those 2 lists share instances of 'a', 'b', and 'd'
Advertisement
Add Comment
Please, Sign In to add comment