Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ideas for Garbage Collection
- x = list('a','b','c','d')
- y = x;
- // x and y point to the same list in memory
- y.replace(2, 'e')
- // x and y point to different lists in memory
- // those 2 lists share instances of 'a', 'b', and 'd'
Advertisement
Add Comment
Please, Sign In to add comment