I just wrote this Python code. Can you figure out why? # i is an integer if i not in a_dict: a_dict[i] = i i = a_dict[i] # now use i
@javidcf Also not far off, but not quite :-). FWIW CPython doesn't have garbage collection, it has reference counting.
-
-
@marcan42 I'd say keeping a strong reference to the cached integer object so that it doesn't have to be rebuilt from scratch.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@marcan42@javidcf Reference counting is a form of garbage collection. See http://gchandbook.org/Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.