Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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'