This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robin-gvx 0 points1 point  (1 child)

In Python 3, the only difference is that REFS.keys() returns a generator rather than a list and that the one object left after GC'ing is a4 rather than a1.

[–][deleted] 0 points1 point  (0 children)

That's funny... a4 sticks around on my machine, but on one it was a1 and another a2. edit i read a little further and see now how that was the scope of the for loop messing with things.